3v4l.org

run code in 300+ PHP versions simultaneously
<html> <body> <?php function myTest() { static $x=0; echo $x=0; $x++; } myTest(); echo"<br>" myTest(); echo"<br>" myTest(); ?> </body> </html>

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)
5.6.80.0070.06720.35
5.5.240.0700.06020.16
5.4.400.0470.04318.63
5.4.390.0330.05018.56
5.4.380.0330.06318.51
5.4.370.0430.07318.59
5.4.360.0300.05318.55
5.4.350.0400.06018.55
5.4.340.0370.06018.56
5.4.320.0400.05318.83
5.4.310.0300.05718.75
5.4.300.0430.04718.75
5.4.290.0170.07018.47
5.4.280.0370.05718.74
5.4.270.0270.06018.76
5.4.260.0230.05718.52
5.4.250.0330.05318.74
5.4.240.0370.07318.83
5.4.230.0430.06318.77
5.4.220.0430.07318.68
5.4.210.0600.05718.48
5.4.200.0500.06016.64
5.4.190.0530.06018.73
5.4.180.0500.06018.79
5.4.170.0530.05718.73
5.4.160.0370.07018.73
5.4.150.0330.07318.70
5.4.140.0430.06016.21
5.4.130.0230.05316.29
5.4.120.0330.05316.43
5.4.110.0270.05016.27
5.4.100.0330.05716.29
5.4.90.0430.06716.14
5.4.80.0330.05316.24
5.4.70.0500.05016.41
5.4.60.0400.05316.39
5.4.50.0330.05716.25
5.4.40.0230.06016.30
5.4.30.0330.05316.39
5.4.20.0330.05716.38
5.4.10.0370.05316.10
5.4.00.0370.05015.88
5.3.290.0530.05314.89
5.3.280.0370.05314.76
5.3.270.0430.05014.77
5.3.260.0100.06714.65
5.3.250.0370.07714.77
5.3.240.0500.05714.77
5.3.230.0330.06014.61
5.3.220.0470.06714.56
5.3.210.0330.06014.77
5.3.200.0300.05314.70
5.3.190.0400.05714.55
5.3.180.0230.06014.60
5.3.170.0270.05314.69
5.3.160.0270.08314.70
5.3.150.0400.05314.69
5.3.140.0400.05714.76
5.3.130.0270.06314.77
5.3.120.0470.04714.59
5.3.110.0430.05314.53
5.3.100.0330.05014.14
5.3.90.0300.05714.19
5.3.80.0370.06314.14
5.3.70.0330.05014.01
5.3.60.0330.05314.11
5.3.50.0270.06013.95
5.3.40.0570.05014.07
5.3.30.0470.04013.96
5.3.20.0470.05013.89
5.3.10.0330.05713.88
5.3.00.0470.05013.68
5.2.170.0370.05311.13
5.2.160.0330.03711.24
5.2.150.0330.04011.25
5.2.140.0230.04711.18
5.2.130.0300.03711.23
5.2.120.0270.05011.22
5.2.110.0230.05011.16
5.2.100.0370.04011.18
5.2.90.0300.05011.10
5.2.80.0230.04711.20
5.2.70.0200.04311.14
5.2.60.0230.04311.27
5.2.50.0330.04011.07
5.2.40.0300.03011.09
5.2.30.0230.04010.96
5.2.20.0370.03011.06
5.2.10.0230.04010.97
5.2.00.0330.04710.81
5.1.60.0230.03710.09
5.1.50.0230.05010.09
5.1.40.0300.03010.00
5.1.30.0200.05010.38
5.1.20.0200.04010.49
5.1.10.0270.03010.27
5.1.00.0200.04010.09
5.0.50.0170.0238.74
5.0.40.0130.0378.44
5.0.30.0170.0408.30
5.0.20.0030.0378.32
5.0.10.0200.0308.19
5.0.00.0130.0578.18
4.4.90.0000.0335.89
4.4.80.0100.0275.96
4.4.70.0130.0305.93
4.4.60.0100.0305.91
4.4.50.0170.0275.89
4.4.40.0100.0335.94
4.4.30.0070.0305.93
4.4.20.0070.0235.93
4.4.10.0100.0335.95
4.4.00.0130.0435.94
4.3.110.0170.0235.91
4.3.100.0170.0235.85
4.3.90.0130.0305.79
4.3.80.0200.0375.81
4.3.70.0170.0275.82
4.3.60.0100.0305.84
4.3.50.0170.0235.89
4.3.40.0170.0375.75
4.3.30.0070.0234.65
4.3.20.0070.0234.61
4.3.10.0070.0234.50
4.3.00.0030.0236.87

preferences:
140.39 ms | 1394 KiB | 7 Q