3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace My; function f() {} trait T {} class C {} interface I {} const CON = 10; $a = 11; var_dump($a::class, f::class, T::class, C::class, I::class, CON::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.0070.08320.41
5.6.70.4300.03720.39
5.5.240.0100.04320.04
5.4.400.0100.06018.84
5.4.390.0270.04718.79
5.4.380.0130.05718.79
5.4.370.0330.03718.62
5.4.360.0170.05018.84
5.4.350.0200.05018.73
5.4.340.0270.04718.56
5.4.320.0270.04718.80
5.4.310.0100.05718.50
5.4.300.0230.04318.83
5.4.290.0200.04718.53
5.4.280.0130.05318.61
5.4.270.0130.05718.80
5.4.260.0230.04318.78
5.4.250.0230.04718.85
5.4.240.0130.05718.56
5.4.230.0170.05018.62
5.4.220.0100.06018.60
5.4.210.0130.05718.79
5.4.200.0130.05316.80
5.4.190.0100.05718.74
5.4.180.0200.05018.57
5.4.170.0170.05318.51
5.4.160.0270.04318.55
5.4.150.0100.05718.78
5.4.140.0200.05716.31
5.4.130.0170.05016.26
5.4.120.0070.05716.20
5.4.110.0170.05016.29
5.4.100.0070.06016.30
5.4.90.0170.05016.23
5.4.80.0200.05016.36
5.4.70.0300.04716.38
5.4.60.0200.04716.30
5.4.50.0100.05716.26
5.4.40.0300.04016.29
5.4.30.0170.05016.27
5.4.20.0200.04716.22
5.4.10.0100.05016.26
5.4.00.0270.05315.89
5.3.290.0200.06714.87
5.3.280.0130.05314.59
5.3.270.0200.05014.73
5.3.260.0100.06014.66
5.3.250.0130.05314.70
5.3.240.0130.05314.65
5.3.230.0130.05314.60
5.3.220.0230.04714.79
5.3.210.0100.06014.73
5.3.200.0200.05014.77
5.3.190.0330.04014.62
5.3.180.0200.05014.58
5.3.170.0170.05314.70
5.3.160.0170.05014.77
5.3.150.0200.04714.79
5.3.140.0270.05314.72
5.3.130.0230.05314.71
5.3.120.0300.04314.73
5.3.110.0170.05014.53
5.3.100.0230.04314.03
5.3.90.0070.06014.13
5.3.80.0100.06014.14
5.3.70.0270.04014.22
5.3.60.0230.04014.12
5.3.50.0200.04314.07
5.3.40.0070.05713.97
5.3.30.0270.03713.96
5.3.20.0100.06013.86
5.3.10.0200.04013.78
5.3.00.0130.05013.71
5.2.170.0070.04711.30
5.2.160.0130.04011.28
5.2.150.0270.02711.18
5.2.140.0200.04011.19
5.2.130.0070.04711.11
5.2.120.0100.04311.09
5.2.110.0070.04711.11
5.2.100.0170.03711.15
5.2.90.0100.04311.09
5.2.80.0200.03311.08
5.2.70.0130.04011.13
5.2.60.0070.05010.98
5.2.50.0170.04011.06
5.2.40.0170.03311.03
5.2.30.0170.03310.88
5.2.20.0170.03310.94
5.2.10.0200.03010.92
5.2.00.0070.04310.81
5.1.60.0130.03310.00
5.1.50.0200.02710.01
5.1.40.0070.03710.07
5.1.30.0070.04010.43
5.1.20.0100.03310.50
5.1.10.0070.03710.14
5.1.00.0100.03310.16
5.0.50.0070.0278.64
5.0.40.0130.0208.44
5.0.30.0030.0478.21
5.0.20.0070.0308.23
5.0.10.0030.0308.37
5.0.00.0070.0408.19
4.4.90.0000.0275.93
4.4.80.0030.0235.88
4.4.70.0070.0205.89
4.4.60.0130.0135.85
4.4.50.0000.0275.93
4.4.40.0070.0335.92
4.4.30.0000.0275.90
4.4.20.0100.0175.96
4.4.10.0100.0176.00
4.4.00.0030.0375.94
4.3.110.0030.0235.81
4.3.100.0030.0235.83
4.3.90.0030.0235.89
4.3.80.0100.0305.87
4.3.70.0070.0205.86
4.3.60.0000.0235.82
4.3.50.0070.0205.77
4.3.40.0030.0335.79
4.3.30.0030.0274.54
4.3.20.0000.0234.55
4.3.10.0000.0234.52
4.3.00.0030.0277.02

preferences:
37.73 ms | 400 KiB | 5 Q