3v4l.org

run code in 300+ PHP versions simultaneously
<?php class c { public static $f; public function __construct() { var_dump(gettype(self::$f)); } } c:$f = function() { return 'ok'; }; new c();

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)
8.3.60.0110.01118.32
8.3.50.0040.01121.21
8.3.40.0070.00718.85
8.3.30.0100.01019.07
8.3.20.0040.00420.38
8.3.10.0080.00022.13
8.3.00.0040.00422.39
8.2.180.0090.00618.43
8.2.170.0110.00422.96
8.2.160.0100.00319.25
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0030.01026.16
8.2.120.0050.00319.23
8.2.110.0110.00822.27
8.2.100.0120.00017.84
8.2.90.0080.00017.91
8.2.80.0030.00617.97
8.2.70.0060.00317.47
8.2.60.0030.00618.03
8.2.50.0000.00818.07
8.2.40.0000.00820.07
8.2.30.0050.00318.12
8.2.20.0040.00417.64
8.2.10.0000.00717.59
8.2.00.0000.00817.66
8.1.280.0080.00525.92
8.1.270.0000.00822.06
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00620.65
8.1.230.0080.00321.03
8.1.220.0040.00417.74
8.1.210.0060.00318.82
8.1.200.0060.00317.23
8.1.190.0040.00417.43
8.1.180.0090.00018.87
8.1.170.0030.00618.54
8.1.160.0000.00822.13
8.1.150.0040.00418.51
8.1.140.0040.00417.44
8.1.130.0050.00217.68
8.1.120.0000.00717.44
8.1.110.0050.00217.35
8.1.100.0000.00717.33
8.1.90.0040.00417.44
8.1.80.0080.00017.51
8.1.70.0070.00017.38
8.1.60.0040.00417.62
8.1.50.0040.00417.50
8.1.40.0060.00317.48
8.1.30.0030.00617.52
8.1.20.0030.00617.69
8.1.10.0040.00417.54
8.1.00.0090.00017.39
8.0.300.0040.00419.96
8.0.290.0070.00017.16
8.0.280.0000.00718.38
8.0.270.0070.00017.14
8.0.260.0000.00816.75
8.0.250.0000.00616.89
8.0.240.0000.00716.74
8.0.230.0030.00316.87
8.0.220.0070.00016.69
8.0.210.0040.00416.84
8.0.200.0000.00716.95
8.0.190.0030.00416.82
8.0.180.0040.00416.90
8.0.170.0040.00416.85
8.0.160.0070.00016.82
8.0.150.0070.00016.91
8.0.140.0070.00016.74
8.0.130.0050.00013.30
8.0.120.0000.00816.88
8.0.110.0000.00716.80
8.0.100.0000.00716.66
8.0.90.0040.00416.70
8.0.80.0140.00316.77
8.0.70.0000.00716.81
8.0.60.0000.00816.72
8.0.50.0080.00016.82
8.0.30.0050.01416.99
8.0.20.0060.01517.40
8.0.10.0000.00816.87
8.0.00.0050.01416.69
7.4.330.0060.00015.00
7.4.320.0030.00316.60
7.4.300.0080.00016.61
7.4.290.0070.00016.58
7.4.280.0070.00016.50
7.4.270.0000.00716.52
7.4.260.0040.00416.49
7.4.250.0040.00416.46
7.4.240.0030.00316.44
7.4.230.0030.00516.40
7.4.220.0060.01216.70
7.4.210.0090.00416.42
7.4.200.0030.00516.61
7.4.190.0030.00316.64
7.4.160.0100.00616.50
7.4.150.0070.01017.40
7.4.140.0120.00917.86
7.4.130.0100.00716.44
7.4.120.0130.00516.46
7.4.110.0100.01016.61
7.4.100.0100.01316.48
7.4.90.0090.00916.50
7.4.80.0060.01219.39
7.4.70.0060.01216.50
7.4.60.0100.00716.46
7.4.50.0000.00816.52
7.4.40.0040.01122.77
7.4.30.0060.01016.64
7.4.00.0080.00815.03
7.3.330.0060.00013.31
7.3.320.0050.00013.24
7.3.310.0000.00716.11
7.3.300.0000.00716.29
7.3.290.0110.00316.31
7.3.280.0100.00616.31
7.3.270.0030.01317.40
7.3.260.0090.01216.51
7.3.250.0090.00916.22
7.3.240.0100.00716.54
7.3.230.0120.01216.39
7.3.210.0140.00616.58
7.3.200.0130.00319.39
7.3.190.0080.00816.32
7.3.180.0030.01316.38
7.3.170.0030.01416.27
7.3.160.0060.01016.42
7.3.120.0130.00015.03
7.3.10.0070.00716.58
7.3.00.0060.00916.66
7.2.330.0110.00716.39
7.2.320.0120.00616.36
7.2.310.0100.01016.45
7.2.300.0060.01016.31
7.2.290.0100.00716.71
7.2.130.0060.00916.89
7.2.120.0040.00716.87
7.2.110.0090.00616.66
7.2.100.0090.00617.07
7.2.90.0030.00916.89
7.2.80.0090.00616.73
7.2.70.0090.00617.01
7.2.60.0080.00516.86
7.2.50.0140.00316.65
7.2.40.0070.00816.95
7.2.30.0050.01316.62
7.2.20.0140.01416.88
7.2.10.0060.00916.88
7.2.00.0080.00718.25
7.1.250.0030.00615.53
7.1.200.0090.00315.79
7.1.100.0000.01517.80
7.1.70.0040.00417.13
7.1.60.0120.01219.82
7.1.50.0080.01516.99
7.1.00.0030.03322.45
7.0.200.0000.01016.41
7.0.140.0030.07022.21
7.0.60.0030.04019.82
7.0.50.0130.03017.85
7.0.40.0000.06320.40
7.0.30.0170.05020.32
7.0.20.0200.04320.23
7.0.10.0200.05020.12
7.0.00.0070.04320.21
5.6.280.0130.06020.90
5.6.210.0030.06020.48
5.6.200.0030.04018.15
5.6.190.0070.04020.77
5.6.180.2970.05020.44
5.6.170.0370.07720.54
5.6.160.0070.04020.46
5.6.150.0070.07718.27
5.6.140.0070.03718.18
5.6.130.0030.04718.28
5.6.120.0000.08021.04
5.6.110.0070.08720.99
5.6.100.0100.08721.03
5.6.90.0270.06020.98
5.6.80.0030.07020.43
5.6.70.0270.05720.50
5.5.350.0170.04020.34
5.5.340.0030.07017.95
5.5.330.0070.07720.56
5.5.320.0200.06020.25
5.5.310.0300.07320.23
5.5.300.0030.04017.96
5.5.290.0030.07317.98
5.5.280.0130.08020.96
5.5.270.0130.03020.88
5.5.260.0070.05720.77
5.5.250.0030.07320.46
5.5.240.0130.06720.16
5.4.450.1100.04319.47
5.4.440.0700.06719.70
5.4.430.0730.05319.38
5.4.420.0700.05319.45
5.4.410.0670.05319.18
5.4.400.0300.05718.79
5.4.390.0370.05018.72
5.4.380.0230.07718.47
5.4.370.0270.05018.47
5.4.360.0170.04718.76
5.4.350.0300.03718.61
5.4.340.0100.05318.80
5.4.320.0050.03612.51
5.4.310.0070.03912.50
5.4.300.0040.03712.51
5.4.290.0070.03612.50
5.4.280.0090.03612.40
5.4.270.0070.03812.40
5.4.260.0030.05318.98
5.4.250.0100.05319.06
5.4.240.0030.05718.98
5.4.230.0130.05318.94
5.4.220.0070.06018.95
5.4.210.0070.05318.93
5.4.200.0070.05718.95
5.4.190.0000.06318.78
5.4.180.0000.06018.98
5.4.170.0070.06018.93
5.4.160.0170.06318.96
5.4.150.0100.05318.90
5.4.140.0030.05316.55
5.4.130.0300.03716.46
5.4.120.0230.03316.55
5.4.110.0100.04716.47
5.4.100.0070.05016.36
5.4.90.0100.04716.35
5.4.80.0100.04316.48
5.4.70.0130.04316.34
5.4.60.0070.05016.50
5.4.50.0170.04016.33
5.4.40.0100.06316.59
5.4.30.0100.04716.37
5.4.20.0070.05016.52
5.4.10.0130.05016.30
5.4.00.0130.04715.76
5.3.290.0070.03712.80
5.3.280.0030.05714.59
5.3.270.0100.05014.61
5.3.260.0100.05314.51
5.3.250.0030.07314.61
5.3.240.0070.05014.68
5.3.230.0030.05314.44
5.3.220.0070.05014.59
5.3.210.0100.05014.75
5.3.200.0100.05014.54
5.3.190.0130.05014.60
5.3.180.0030.05314.65
5.3.170.0170.06314.70
5.3.160.0070.05714.63
5.3.150.0070.05314.74
5.3.140.0100.07014.57
5.3.130.0100.05014.55
5.3.120.0070.05314.64
5.3.110.0170.04314.56
5.3.100.0130.04314.08
5.3.90.0030.05314.18
5.3.80.0130.04314.10
5.3.70.0070.04714.19
5.3.60.0100.04313.96
5.3.50.0170.03713.93
5.3.40.0130.04713.97
5.3.30.0070.05013.82
5.3.20.0070.04713.78
5.3.10.0100.05713.87
5.3.00.0100.04713.63
5.2.170.0070.04311.22
5.2.160.0130.03311.14
5.2.150.0070.05311.21
5.2.140.0130.04710.96
5.2.130.0070.04011.18
5.2.120.0130.03711.07
5.2.110.0070.05311.10
5.2.100.0000.05011.18
5.2.90.0030.04311.16
5.2.80.0030.04311.25
5.2.70.0130.03311.18
5.2.60.0030.04311.14
5.2.50.0070.04710.99
5.2.40.0100.03711.06
5.2.30.0030.04710.95
5.2.20.0200.03710.93
5.2.10.0070.03710.94
5.2.00.0030.04310.79
5.1.60.0030.0339.95
5.1.50.0070.03310.23
5.1.40.0070.03010.07
5.1.30.0070.03310.30
5.1.20.0100.03010.52
5.1.10.0070.03310.11
5.1.00.0100.03010.26
5.0.50.0030.0278.52
5.0.40.0030.0278.33
5.0.30.0070.0538.19
5.0.20.0030.0278.17
5.0.10.0000.0308.26
5.0.00.0030.0408.36
4.4.90.0030.0237.24
4.4.80.0000.0337.24
4.4.70.0030.0307.24
4.4.60.0000.0237.24
4.4.50.0000.0237.24
4.4.40.0030.0337.24
4.4.30.0000.0277.24
4.4.20.0070.0207.24
4.4.10.0000.0337.24
4.4.00.0000.0377.24
4.3.110.0030.0207.24
4.3.100.0030.0237.24
4.3.90.0030.0307.24
4.3.80.0000.0337.24
4.3.70.0030.0277.24
4.3.60.0030.0207.24
4.3.50.0000.0237.24
4.3.40.0030.0337.24
4.3.30.0100.0337.24
4.3.20.0000.0237.24
4.3.10.0000.0237.24
4.3.00.0100.0237.94

preferences:
45.62 ms | 401 KiB | 5 Q