3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo($x) { $x++; } $bar = 1; foo($bar); // 1 foo(&$bar); // 2, Fatal >= 5.4.

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.4.270.0130.05718.82
5.4.260.0230.06019.10
5.4.250.0170.07318.96
5.4.240.0130.07319.09
5.4.230.0070.05318.96
5.4.220.0200.06018.90
5.4.210.0030.06018.99
5.4.200.0230.06318.74
5.4.190.0270.05018.91
5.4.180.0070.05318.94
5.4.170.0030.06318.60
5.4.160.0170.05318.90
5.4.150.0070.07318.90
5.4.140.0070.05316.55
5.4.130.0170.04016.38
5.4.120.0170.06316.57
5.4.110.0100.07316.43
5.4.100.0100.07016.47
5.4.90.0170.04716.41
5.4.80.0130.06316.46
5.4.70.0170.05716.39
5.4.60.0100.05016.45
5.4.50.0100.04716.43
5.4.40.0070.05316.51
5.4.30.0170.05316.45
5.4.20.0070.07316.45
5.4.10.0230.05716.46
5.4.00.0270.05015.94
5.3.290.0060.04412.80
5.3.280.0200.04314.72
5.3.270.0100.05314.59
5.3.260.0130.07014.78
5.3.250.0130.08014.73
5.3.240.0100.05314.69
5.3.230.0100.07714.68
5.3.220.0070.05714.39
5.3.210.0070.06714.57
5.3.200.0100.06314.39
5.3.190.0070.06314.73
5.3.180.0030.06314.65
5.3.170.0130.07014.70
5.3.160.0100.04714.59
5.3.150.0000.05714.63
5.3.140.0200.03714.56
5.3.130.0200.07314.63
5.3.120.0170.05314.44
5.3.110.0130.05314.60
5.3.100.0170.05314.02
5.3.90.0100.04714.02
5.3.80.0170.05014.08
5.3.70.0130.05014.10
5.3.60.0000.06014.02
5.3.50.0170.04714.03
5.3.40.0130.06713.93
5.3.30.0130.05014.11
5.3.20.0070.04713.71
5.3.10.0100.04713.55
5.3.00.0030.05713.54
5.2.170.0100.04011.14
5.2.160.0100.07011.22
5.2.150.0200.04311.13
5.2.140.0170.05711.14
5.2.130.0170.04011.05
5.2.120.0100.05711.07
5.2.110.0070.04011.18
5.2.100.0100.05311.17
5.2.90.0030.04711.04
5.2.80.0170.05011.04
5.2.70.0070.05711.17
5.2.60.0070.05011.12
5.2.50.0170.03711.24
5.2.40.0070.05311.08
5.2.30.0170.05311.04
5.2.20.0070.04011.12
5.2.10.0130.05010.86
5.2.00.0130.03310.68
5.1.60.0030.03710.07
5.1.50.0030.0339.95
5.1.40.0100.04010.21
5.1.30.0100.03310.43
5.1.20.0070.04310.53
5.1.10.0030.03710.23
5.1.00.0100.04710.25
5.0.50.0030.0308.59
5.0.40.0030.0278.61
5.0.30.0030.0578.31
5.0.20.0030.0278.28
5.0.10.0030.0378.12
5.0.00.0030.0478.07
4.4.90.0030.0276.90
4.4.80.0070.0236.90
4.4.70.0000.0236.90
4.4.60.0000.0236.90
4.4.50.0030.0306.90
4.4.40.0070.0376.90
4.4.30.0070.0236.90
4.4.20.0030.0276.90
4.4.10.0030.0236.89
4.4.00.0070.0306.89
4.3.110.0000.0236.89
4.3.100.0030.0206.89
4.3.90.0030.0236.89
4.3.80.0100.0376.89
4.3.70.0030.0236.90
4.3.60.0070.0176.90
4.3.50.0030.0276.90
4.3.40.0070.0406.90
4.3.30.0000.0236.90
4.3.20.0030.0306.90
4.3.10.0030.0206.90
4.3.00.0070.0177.38

preferences:
135.82 ms | 1398 KiB | 7 Q