3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f($a = null, $b) { var_dump(['a' => $a, 'b' => $b]); } f(, 'test');

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.390.0370.06318.57
5.4.380.0370.05718.84
5.4.370.0400.05718.50
5.4.360.0470.06318.70
5.4.350.0370.05718.57
5.4.340.0370.06018.57
5.4.320.0230.06018.79
5.4.310.0300.06318.70
5.4.300.0370.05718.63
5.4.290.0330.06318.84
5.4.280.0400.06718.52
5.4.270.0400.05318.52
5.4.260.0370.05318.46
5.4.250.0230.05718.69
5.4.240.0270.06318.59
5.4.230.0130.06318.58
5.4.220.0230.06318.56
5.4.210.0270.05718.84
5.4.200.0330.06016.60
5.4.190.0170.07718.60
5.4.180.0300.06318.74
5.4.170.0370.06718.57
5.4.160.0370.05718.59
5.4.150.0230.07018.45
5.4.140.0200.05316.43
5.4.130.0170.05016.27
5.4.120.0270.06316.30
5.4.110.0230.06316.23
5.4.100.0330.06716.20
5.4.90.0330.06016.29
5.4.80.0230.06716.30
5.4.70.0300.06016.19
5.4.60.0330.05716.20
5.4.50.0300.06016.29
5.4.40.0200.07316.39
5.4.30.0330.05716.46
5.4.20.0230.06716.39
5.4.10.0300.05716.12
5.4.00.0230.04715.88
5.3.290.0270.06014.76
5.3.280.0270.05014.77
5.3.270.0200.07714.81
5.3.260.0170.06314.62
5.3.250.0170.06014.61
5.3.240.0200.05314.73
5.3.230.0070.06314.63
5.3.220.0230.04714.63
5.3.210.0230.07314.61
5.3.200.0330.06014.64
5.3.190.0230.07014.68
5.3.180.0200.06714.60
5.3.170.0170.05714.60
5.3.160.0270.05014.79
5.3.150.0100.06014.79
5.3.140.0230.04314.59
5.3.130.0200.05714.57
5.3.120.0370.03314.66
5.3.110.0170.05714.75
5.3.100.0270.04314.18
5.3.90.0170.05314.10
5.3.80.0230.04714.11
5.3.70.0270.05014.04
5.3.60.0300.06314.11
5.3.50.0270.06314.05
5.3.40.0270.06714.09
5.3.30.0230.06713.95
5.3.20.0270.06313.79
5.3.10.0270.05313.76
5.3.00.0100.06713.69
5.2.170.0200.05011.18
5.2.160.0170.05311.24
5.2.150.0230.05011.21
5.2.140.0270.05311.13
5.2.130.0200.04711.32
5.2.120.0300.06011.17
5.2.110.0400.04011.32
5.2.100.0200.05011.08
5.2.90.0300.05711.12
5.2.80.0330.04311.21
5.2.70.0230.05711.12
5.2.60.0170.04311.15
5.2.50.0270.05011.04
5.2.40.0270.04311.05
5.2.30.0330.04711.03
5.2.20.0270.04310.96
5.2.10.0170.06310.91
5.2.00.0230.05310.73
5.1.60.0330.04710.06
5.1.50.0400.03010.11
5.1.40.0200.04010.17
5.1.30.0230.04310.55
5.1.20.0300.04010.46
5.1.10.0300.04010.25
5.1.00.0130.04010.24
5.0.50.0100.0378.73
5.0.40.0130.0408.43
5.0.30.0170.0508.26
5.0.20.0170.0278.28
5.0.10.0030.0378.21
5.0.00.0130.0478.29
4.4.90.0100.0276.74
4.4.80.0100.0236.74
4.4.70.0030.0306.74
4.4.60.0030.0276.74
4.4.50.0200.0206.74
4.4.40.0130.0306.74
4.4.30.0100.0236.74
4.4.20.0130.0276.74
4.4.10.0130.0306.74
4.4.00.0130.0436.74
4.3.110.0000.0276.74
4.3.100.0130.0176.74
4.3.90.0130.0206.74
4.3.80.0130.0336.74
4.3.70.0130.0236.74
4.3.60.0130.0236.74
4.3.50.0130.0306.74
4.3.40.0070.0336.74
4.3.30.0030.0306.74
4.3.20.0130.0276.74
4.3.10.0070.0276.74
4.3.00.0100.0207.34

preferences:
143.86 ms | 1394 KiB | 7 Q