3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { const X = [1,2,3,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.6.80.0070.06020.35
5.5.240.0170.04020.18
5.4.400.0370.05318.61
5.4.390.0300.05318.75
5.4.380.0400.05018.77
5.4.370.0300.06318.56
5.4.360.0300.05318.56
5.4.350.0300.05718.53
5.4.340.0300.05018.41
5.4.320.0270.05718.78
5.4.310.0300.05718.79
5.4.300.0230.06718.74
5.4.290.0430.07018.68
5.4.280.0370.05018.83
5.4.270.0430.05018.52
5.4.260.0430.06018.73
5.4.250.0430.07318.68
5.4.240.0430.06318.74
5.4.230.0300.05718.60
5.4.220.0430.05318.45
5.4.210.0370.05018.54
5.4.200.0330.06316.79
5.4.190.0400.05018.59
5.4.180.0300.05718.45
5.4.170.0400.05318.61
5.4.160.0300.06718.77
5.4.150.0200.06718.81
5.4.140.0400.04716.30
5.4.130.0400.04316.27
5.4.120.0400.05716.26
5.4.110.0270.07016.26
5.4.100.0370.06016.18
5.4.90.0300.06716.33
5.4.80.0330.05316.21
5.4.70.0300.05716.30
5.4.60.0300.05016.41
5.4.50.0330.05716.39
5.4.40.0230.06716.42
5.4.30.0570.05316.28
5.4.20.0400.05716.28
5.4.10.0470.04716.16
5.4.00.0870.05015.63
5.3.290.0800.06314.73
5.3.280.0600.07314.61
5.3.270.0570.06714.58
5.3.260.0430.07314.65
5.3.250.0600.06714.66
5.3.240.0270.06314.66
5.3.230.0400.06714.81
5.3.220.0330.06014.61
5.3.210.0430.05314.68
5.3.200.0300.06014.61
5.3.190.0330.05014.59
5.3.180.0470.07314.62
5.3.170.0370.07314.60
5.3.160.0530.05314.78
5.3.150.0500.06714.60
5.3.140.0430.04714.77
5.3.130.0470.06714.60
5.3.120.0330.05714.68
5.3.110.0430.07014.76
5.3.100.0330.05314.13
5.3.90.0330.05314.07
5.3.80.0500.05013.99
5.3.70.0530.05014.07
5.3.60.0430.05014.05
5.3.50.0200.06313.99
5.3.40.0330.06014.14
5.3.30.0370.06313.96
5.3.20.0400.05713.89
5.3.10.0300.06713.78
5.3.00.0300.06013.73
5.2.170.0230.06311.23
5.2.160.0370.05311.16
5.2.150.0200.04711.12
5.2.140.0330.05011.18
5.2.130.0370.05311.12
5.2.120.0430.03311.17
5.2.110.0170.06711.14
5.2.100.0430.05711.20
5.2.90.0230.04311.08
5.2.80.0230.05311.12
5.2.70.0270.04011.13
5.2.60.0330.04311.09
5.2.50.0300.04311.08
5.2.40.0300.05011.20
5.2.30.0170.04710.99
5.2.20.0300.03710.95
5.2.10.0200.04310.87
5.2.00.0230.05310.93
5.1.60.0200.05010.12
5.1.50.0200.04010.02
5.1.40.0270.04010.15
5.1.30.0200.04010.55
5.1.20.0370.04010.45
5.1.10.0370.03010.10
5.1.00.0200.03710.19
5.0.50.0100.0338.63
5.0.40.0200.0408.41
5.0.30.0170.0538.29
5.0.20.0170.0278.20
5.0.10.0070.0378.28
5.0.00.0030.0578.29
4.4.90.0200.0236.84
4.4.80.0230.0206.84
4.4.70.0070.0276.84
4.4.60.0130.0206.84
4.4.50.0200.0206.84
4.4.40.0130.0376.84
4.4.30.0170.0236.84
4.4.20.0230.0176.84
4.4.10.0030.0276.84
4.4.00.0270.0436.84
4.3.110.0100.0276.84
4.3.100.0200.0236.84
4.3.90.0230.0236.84
4.3.80.0170.0376.84
4.3.70.0170.0236.84
4.3.60.0070.0236.84
4.3.50.0130.0236.84
4.3.40.0130.0436.84
4.3.30.0170.0276.84
4.3.20.0100.0276.84
4.3.10.0100.0206.84
4.3.00.0030.0206.79

preferences:
138.18 ms | 1398 KiB | 7 Q