3v4l.org

run code in 300+ PHP versions simultaneously
<?php $GLOBALS['_start_time'] = microtime(true); echo "*** Testing fgetc() : usage variations ***\n"; echo "-- Testing fgetc() with files opened with different read modes --\n"; $file_modes = array( "a+", "a+b", "a+t","x+", "x+b", "x+t","w+", "w+b", "w+t" ); $filename = __DIR__."non-exist.tmp"; function &test() : string {} function &gen() { yield $str[0]; } try { $str = "foo"; } catch (Error $e) { } var_dump($filename); var_dump($str); $x1=$filename; $x2=$str; var_dump(strcmp($x1,$x2));

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.120.0240.00717.46
8.2.120.0280.00618.32
7.4.20.0210.00516.15
7.1.70.0250.00616.69

preferences:
33.45 ms | 403 KiB | 5 Q