3v4l.org

run code in 200+ PHP versions simultaneously
<?php error_reporting(E_ALL); ini_set('display_errors','On'); // array is higher than Infinity and string and 20: var_dump(max(20,"string",INF,array())); // InvalidArgumentException? TypeError? never heard of it
based on i3vMU
Output for 4.3.0 - 4.3.1, 4.3.6 - 5.0.5, 5.1.1 - 7.4.4
array(0) { }
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/iONLA on line 7
Process exited with code 255.
Output for 4.3.2 - 4.3.5
Notice: Use of undefined constant INF - assumed 'INF' in /in/iONLA on line 5 array(0) { }