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 "<p>Variable x inside function is: $x</p>"; } 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.0070.05720.06
5.6.160.0170.07020.47
5.6.150.0170.02718.18
5.6.140.0100.06718.21
5.6.130.0100.07718.23
5.6.120.0170.07020.99
5.6.110.0130.07020.97
5.6.100.0030.09021.01
5.6.90.0070.06321.02
5.6.80.0070.08320.51
5.5.300.0070.08718.08
5.5.290.0070.06718.09
5.5.280.0000.04320.90
5.5.270.0030.07020.74
5.5.260.0070.08020.64
5.5.250.0030.04320.77
5.5.240.4230.04020.19

preferences:
138.47 ms | 1394 KiB | 7 Q