3v4l.org

run code in 300+ PHP versions simultaneously
<?php function &f() {    $x = "foo";    var_dump($x);    print "$x\n";    return($a);}for ($i = 0; $i < 3; $i++) {    $h = &f();}?>

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.310.0370.06019.07
5.4.300.0200.06319.09
5.4.290.0270.06018.87
5.4.280.0200.06719.13
5.4.270.0230.07018.85
5.4.260.0200.07019.16
5.4.250.0170.07019.26
5.4.240.0300.06319.16
5.4.230.0170.05719.07
5.4.220.0200.07719.13
5.4.210.0130.08319.16
5.4.200.0270.04019.22
5.4.190.0270.07318.98
5.4.180.0200.03719.07
5.4.170.0200.05019.15
5.4.160.0230.07319.13
5.4.150.0270.05018.85
5.4.140.0200.07016.53
5.4.130.0230.03016.37
5.4.120.0200.04316.27
5.4.110.0200.05016.55
5.4.100.0230.04316.34
5.4.90.0170.06716.26
5.4.80.0200.06716.17
5.4.70.0230.04316.57
5.4.60.0230.04316.25
5.4.50.0300.06716.55
5.4.40.0270.06316.43
5.4.30.0170.08016.23
5.4.20.0200.06716.52
5.4.10.0170.06316.51
5.4.00.0270.04315.83
5.3.290.0400.03314.73
5.3.280.0270.04714.46
5.3.270.0270.07014.52
5.3.260.0300.06714.45
5.3.250.0300.06714.45
5.3.240.0170.04314.54
5.3.230.0300.05014.65
5.3.220.0300.06714.55
5.3.210.0200.04714.52
5.3.200.0230.04314.43
5.3.190.0200.05714.48
5.3.180.0200.06314.41
5.3.170.0230.04714.65
5.3.160.0230.03714.51
5.3.150.0270.04314.50
5.3.140.0230.03714.41
5.3.130.0200.06714.41
5.3.120.0270.05714.39
5.3.110.0270.05314.58
5.3.100.0200.06713.99
5.3.90.0270.05714.00
5.3.80.0270.04013.98
5.3.70.0270.05313.98
5.3.60.0230.03014.09
5.3.50.0270.06713.89
5.3.40.0300.07013.97
5.3.30.0300.05713.86
5.3.20.0270.06313.57
5.3.10.0300.06013.60
5.3.00.0370.03013.60
5.2.170.0170.06311.84
5.2.160.0200.06011.84
5.2.150.0200.05711.84
5.2.140.0200.05711.84
5.2.130.0200.03711.84
5.2.120.0200.05711.84
5.2.110.0170.06011.84
5.2.100.0270.05011.84
5.2.90.0270.05311.84
5.2.80.0230.04711.84
5.2.70.0300.04011.84
5.2.60.0170.04011.84
5.2.50.0170.04011.84
5.2.40.0100.06711.84
5.2.30.0130.05311.84
5.2.20.0170.05311.84
5.2.10.0130.04711.84
5.2.00.0200.05711.84
5.1.60.0170.04711.84
5.1.50.0200.04711.84
5.1.40.0200.04711.84
5.1.30.0200.05311.84
5.1.20.0130.04711.84
5.1.10.0170.02311.84
5.1.00.0100.02711.84
5.0.50.0070.02311.84
5.0.40.0070.02011.84
5.0.30.0130.05711.84
5.0.20.0100.03711.84
5.0.10.0130.03311.84
5.0.00.0130.06311.84
4.4.90.0100.03011.84
4.4.80.0030.03011.84
4.4.70.0130.01311.84
4.4.60.0130.02311.84
4.4.50.0030.02711.84
4.4.40.0100.04311.84
4.4.30.0100.02711.84
4.4.20.0100.01711.84
4.4.10.0070.01711.84
4.4.00.0070.02711.84
4.3.110.0100.03311.84
4.3.100.0070.03711.84
4.3.90.0030.03711.84
4.3.80.0070.05011.84
4.3.70.0070.03311.84
4.3.60.0070.03311.84
4.3.50.0100.03311.84
4.3.40.0070.04711.84
4.3.30.0070.01711.84
4.3.20.0030.04011.84
4.3.10.0030.02011.84
4.3.00.0070.02711.84

preferences:
139.1 ms | 1394 KiB | 7 Q