3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x=5; // global scope function myTest() { // using x inside this function will generate an error echo $x; } myTest(); } ?>

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)
7.0.00.0100.08320.25
5.6.160.0100.08320.45
5.6.150.0030.04018.27
5.6.140.0070.08318.18
5.6.130.0100.08718.18
5.6.120.0030.08720.98
5.6.110.0070.04721.15
5.6.100.0130.06321.14
5.6.90.0170.06020.99
5.6.80.0070.04720.36
5.5.300.0070.03718.04
5.5.290.0100.07317.93
5.5.280.0030.07720.77
5.5.270.0000.08020.83
5.5.260.0100.04020.64
5.5.250.0130.08320.58
5.5.240.0330.06720.35

preferences:
144.39 ms | 1386 KiB | 7 Q