3v4l.org

run code in 300+ PHP versions simultaneously
<?php function a($a = 1) { print $a; } a(null); a(0) a('a'); a();

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.280.0070.03019.21
5.4.270.0000.03718.99
5.4.260.0030.04019.14
5.4.250.0030.04018.85
5.4.240.0100.03718.84
5.4.230.0030.05718.97
5.4.220.0000.07719.21
5.4.210.0100.06719.09
5.4.200.0000.07719.19
5.4.190.0070.04019.21
5.4.180.0030.03718.97
5.4.170.0000.04319.15
5.4.160.0130.04018.98
5.4.150.0030.08019.29
5.4.140.0000.07316.50
5.4.130.0000.07016.33
5.4.120.0000.07716.45
5.4.110.0000.06316.35
5.4.100.0000.07716.19
5.4.90.0070.04716.56
5.4.80.0000.04316.52
5.4.70.0070.06716.52
5.4.60.0030.07016.38
5.4.50.0030.07016.38
5.4.40.0030.07016.51
5.4.30.0100.06316.42
5.4.20.0000.05316.16
5.4.10.0000.06316.42
5.4.00.0030.07315.81
5.3.280.0000.05714.56
5.3.270.0100.06314.57
5.3.260.0100.07314.57
5.3.250.0070.05314.61
5.3.240.0070.07314.60
5.3.230.0000.07714.54
5.3.220.0000.07314.56
5.3.210.0030.06314.68
5.3.200.0070.07014.68
5.3.190.0000.06314.49
5.3.180.0070.07014.54
5.3.170.0030.05314.64
5.3.160.0030.05014.56
5.3.150.0000.05014.48
5.3.140.0100.06314.55
5.3.130.0030.07714.47
5.3.120.0030.07014.56
5.3.110.0030.08014.63
5.3.100.0000.08014.01
5.3.90.0000.04714.11
5.3.80.0070.07313.93
5.3.70.0030.06013.92
5.3.60.0030.06014.08
5.3.50.0000.08014.11
5.3.40.0030.06013.95
5.3.30.0000.08014.02
5.3.20.0030.07713.80
5.3.10.0070.06313.67
5.3.00.0000.07713.54
5.2.170.0070.04312.65
5.2.160.0030.05712.65
5.2.150.0030.04312.65
5.2.140.0000.03012.65
5.2.130.0030.03712.65
5.2.120.0030.06312.65
5.2.110.0000.05712.65
5.2.100.0030.06312.65
5.2.90.0000.05012.65
5.2.80.0000.06712.65
5.2.70.0030.03712.65
5.2.60.0030.04712.65
5.2.50.0030.03712.65
5.2.40.0070.04312.65
5.2.30.0000.04312.65
5.2.20.0030.06012.65
5.2.10.0000.03712.65
5.2.00.0070.04312.65
5.1.60.0000.05712.65
5.1.50.0070.04312.65
5.1.40.0000.04712.65
5.1.30.0030.04712.65
5.1.20.0030.03012.65
5.1.10.0000.03712.65
5.1.00.0000.05312.65
5.0.50.0070.03712.65
5.0.40.0070.02312.65
5.0.30.0030.04712.65
5.0.20.0000.02712.65
5.0.10.0000.03312.65
5.0.00.0030.05712.65
4.4.90.0000.04012.65
4.4.80.0030.03312.65
4.4.70.0070.01312.65
4.4.60.0000.02012.65
4.4.50.0000.02012.65
4.4.40.0030.05312.65
4.4.30.0000.03012.65
4.4.20.0000.02012.65
4.4.10.0030.03712.65
4.4.00.0000.04312.65
4.3.110.0000.02012.65
4.3.100.0030.02312.65
4.3.90.0000.03312.65
4.3.80.0000.05312.65
4.3.70.0000.03012.65
4.3.60.0000.03312.65
4.3.50.0030.03712.65
4.3.40.0000.04312.65
4.3.30.0030.02712.65
4.3.20.0000.02312.65
4.3.10.0000.03712.65
4.3.00.0030.03312.65

preferences:
147.94 ms | 1394 KiB | 7 Q