1--TEST-- 2version_compare() no longer supports operator abbreviations 3--FILE-- 4<?php 5$abbrevs = ['', 'l', 'g', 'e', '!', 'n']; 6foreach ($abbrevs as $op) { 7 try { 8 version_compare('1', '2', $op); 9 echo "'$op' succeeded\n"; 10 } catch (ValueError $err) { 11 echo "'$op' failed\n"; 12 } 13} 14?> 15--EXPECT-- 16'' failed 17'l' failed 18'g' failed 19'e' failed 20'!' failed 21'n' failed 22