3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace My; function f() {} trait T {} class C {} interface I {} const CONST = 10; var_dump(f::class, T::class, C::class, I::class);

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.0100.05020.41
5.5.240.0100.07020.23
5.4.400.0200.05318.76
5.4.390.0170.05018.63
5.4.380.0130.05718.76
5.4.370.0230.04718.78
5.4.360.0200.04718.86
5.4.350.0170.07318.80
5.4.340.0270.06718.74
5.4.320.0270.04318.75
5.4.310.0130.05318.50
5.4.300.0200.05318.59
5.4.290.0300.04718.84
5.4.280.0070.07018.62
5.4.270.0170.07318.74
5.4.260.0130.06718.46
5.4.250.0200.05718.47
5.4.240.0170.05318.56
5.4.230.0100.06318.64
5.4.220.0130.05718.73
5.4.210.0230.07018.52
5.4.200.0100.07716.57
5.4.190.0230.07018.49
5.4.180.0100.07018.52
5.4.170.0070.06018.80
5.4.160.0130.05318.78
5.4.150.0270.04318.71
5.4.140.0130.05316.47
5.4.130.0270.04016.26
5.4.120.0130.05016.29
5.4.110.0200.04316.30
5.4.100.0170.04716.21
5.4.90.0200.04716.23
5.4.80.0100.05316.23
5.4.70.0170.05016.23
5.4.60.0130.05016.21
5.4.50.0170.04716.20
5.4.40.0170.05016.22
5.4.30.0200.04316.25
5.4.20.0170.05016.41
5.4.10.0130.05016.27
5.4.00.0100.05315.66
5.3.290.0100.06014.70
5.3.280.0070.06014.81
5.3.270.0130.05314.70
5.3.260.0200.05014.62
5.3.250.0200.06014.84
5.3.240.0100.05314.79
5.3.230.0070.06014.71
5.3.220.0130.05714.63
5.3.210.0230.05014.70
5.3.200.0130.05014.55
5.3.190.0270.04014.77
5.3.180.0130.05014.59
5.3.170.0170.05014.66
5.3.160.0100.05714.78
5.3.150.0170.05014.59
5.3.140.0070.05714.57
5.3.130.0200.04714.65
5.3.120.0130.05714.71
5.3.110.0200.05714.79
5.3.100.0200.04714.02
5.3.90.0100.05314.00
5.3.80.0100.06314.11
5.3.70.0100.05314.22
5.3.60.0100.05314.22
5.3.50.0170.04714.17
5.3.40.0200.04314.06
5.3.30.0230.04013.91
5.3.20.0170.04713.70
5.3.10.0130.05313.65
5.3.00.0200.04313.65
5.2.170.0070.05011.17
5.2.160.0230.03711.20
5.2.150.0030.05711.18
5.2.140.0300.02311.12
5.2.130.0070.04311.01
5.2.120.0100.04011.08
5.2.110.0200.03311.05
5.2.100.0100.04011.09
5.2.90.0170.03311.16
5.2.80.0130.04311.13
5.2.70.0100.04311.13
5.2.60.0070.04711.03
5.2.50.0130.04010.96
5.2.40.0100.04011.04
5.2.30.0130.03710.93
5.2.20.0100.04011.00
5.2.10.0170.04710.90
5.2.00.0130.04310.65
5.1.60.0130.03310.05
5.1.50.0130.03010.01
5.1.40.0130.0339.99
5.1.30.0130.03010.36
5.1.20.0200.02710.32
5.1.10.0100.03310.08
5.1.00.0130.03310.16
5.0.50.0070.0308.66
5.0.40.0070.0278.47
5.0.30.0030.0438.29
5.0.20.0100.0238.30
5.0.10.0000.0338.30
5.0.00.0070.0408.34
4.4.90.0070.0205.89
4.4.80.0030.0235.92
4.4.70.0070.0205.90
4.4.60.0070.0205.94
4.4.50.0100.0175.93
4.4.40.0100.0305.94
4.4.30.0070.0205.94
4.4.20.0000.0275.97
4.4.10.0030.0235.97
4.4.00.0030.0375.86
4.3.110.0070.0205.79
4.3.100.0070.0205.74
4.3.90.0100.0175.78
4.3.80.0000.0375.81
4.3.70.0030.0235.76
4.3.60.0030.0205.78
4.3.50.0030.0235.81
4.3.40.0030.0375.86
4.3.30.0000.0234.58
4.3.20.0030.0204.57
4.3.10.0000.0234.56
4.3.00.0000.0237.02

preferences:
140.2 ms | 1394 KiB | 7 Q