3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static function foo() { $f = function() { echo get_called_class()."\n"; }; $f(); } } class B extends A {} B::foo();

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.0120.00318.55
8.3.50.0140.00321.08
8.3.40.0110.00718.86
8.3.30.0100.01019.04
8.3.20.0080.00020.01
8.3.10.0040.00422.04
8.3.00.0050.00322.39
8.2.180.0090.00916.38
8.2.170.0040.01122.96
8.2.160.0110.00319.26
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0130.00626.16
8.2.120.0060.00319.45
8.2.110.0090.00022.03
8.2.100.0090.00319.38
8.2.90.0050.00319.10
8.2.80.0020.00518.04
8.2.70.0000.00817.63
8.2.60.0030.00517.80
8.2.50.0000.00818.07
8.2.40.0040.00418.22
8.2.30.0080.00017.96
8.2.20.0040.00417.72
8.2.10.0000.00817.73
8.2.00.0070.00317.55
8.1.280.0110.00325.92
8.1.270.0000.00820.33
8.1.260.0000.00726.35
8.1.250.0050.00328.09
8.1.240.0060.00323.82
8.1.230.0000.01118.97
8.1.220.0000.00717.78
8.1.210.0040.00418.77
8.1.200.0000.00917.35
8.1.190.0000.00817.53
8.1.180.0000.00820.44
8.1.170.0030.00518.55
8.1.160.0040.00422.14
8.1.150.0040.00418.54
8.1.140.0000.00717.46
8.1.130.0030.00317.86
8.1.120.0040.00417.47
8.1.110.0030.00617.38
8.1.100.0030.00317.35
8.1.90.0040.00417.50
8.1.80.0050.00317.46
8.1.70.0070.00017.38
8.1.60.0030.00517.61
8.1.50.0000.00717.54
8.1.40.0080.00017.52
8.1.30.0000.00717.62
8.1.20.0000.00817.56
8.1.10.0040.00417.55
8.1.00.0000.00817.50
8.0.300.0000.00718.77
8.0.290.0040.00417.16
8.0.280.0000.00718.38
8.0.270.0020.00517.16
8.0.260.0030.00316.82
8.0.250.0040.00416.99
8.0.240.0040.00416.96
8.0.230.0030.00316.88
8.0.220.0070.00016.79
8.0.210.0040.00416.91
8.0.200.0030.00316.95
8.0.190.0000.00716.84
8.0.180.0000.00716.88
8.0.170.0000.00816.89
8.0.160.0060.00316.77
8.0.150.0050.00316.86
8.0.140.0050.00316.77
8.0.130.0000.00513.36
8.0.120.0040.00416.84
8.0.110.0040.00416.94
8.0.100.0000.00716.89
8.0.90.0040.00416.94
8.0.80.0030.01216.87
8.0.70.0000.00816.68
8.0.60.0040.00416.73
8.0.50.0040.00416.84
8.0.30.0110.01116.95
8.0.20.0050.01317.40
8.0.10.0040.00416.99
8.0.00.0070.01516.71
7.4.330.0000.00415.00
7.4.320.0000.00616.49
7.4.300.0030.00316.35
7.4.290.0030.00316.54
7.4.280.0060.00316.52
7.4.270.0000.00716.54
7.4.260.0050.00316.41
7.4.250.0000.00716.57
7.4.240.0040.00316.50
7.4.230.0030.00316.49
7.4.220.0060.00916.55
7.4.210.0020.01116.53
7.4.200.0000.00716.38
7.4.190.0070.00016.73
7.4.160.0100.00616.45
7.4.150.0000.01717.40
7.4.140.0060.01617.86
7.4.130.0080.00916.57
7.4.120.0090.00916.46
7.4.110.0270.02516.41
7.4.100.0130.01016.33
7.4.90.0120.00616.51
7.4.80.0070.01719.39
7.4.70.0080.00816.40
7.4.60.0260.01616.52
7.4.50.0000.00816.57
7.4.40.0150.00322.77
7.4.30.0160.00016.39
7.4.00.0070.01015.13
7.3.330.0050.00013.12
7.3.320.0000.00613.09
7.3.310.0000.00716.19
7.3.300.0020.00516.34
7.3.290.0030.01616.26
7.3.280.0080.00916.27
7.3.270.0070.01017.40
7.3.260.0070.01016.33
7.3.250.0070.01216.46
7.3.240.0070.01016.29
7.3.230.0070.01016.39
7.3.210.0060.00916.53
7.3.200.0070.01019.39
7.3.190.0140.00416.47
7.3.180.0120.00416.56
7.3.170.0100.00716.36
7.3.160.0160.00016.56
7.3.120.0060.00914.69
7.3.110.0070.00714.45
7.3.100.0030.01414.80
7.3.90.0100.00314.68
7.3.80.0090.00614.69
7.3.70.0030.01314.89
7.3.60.0070.00714.71
7.3.50.0060.00314.82
7.3.40.0060.00314.51
7.3.30.0000.01514.84
7.3.20.0030.00716.63
7.3.10.0030.01016.43
7.3.00.0090.00516.55
7.2.330.0100.00716.27
7.2.320.0060.01516.54
7.2.310.0040.01216.37
7.2.300.0100.00616.25
7.2.290.0080.00816.58
7.2.240.0030.00615.20
7.2.230.0100.00715.20
7.2.220.0090.00615.18
7.2.210.0040.01414.99
7.2.200.0030.01014.63
7.2.190.0110.00415.00
7.2.180.0090.00614.87
7.2.170.0100.00314.77
7.2.160.0060.00615.11
7.2.150.0000.01216.94
7.2.140.0060.00616.88
7.2.130.0050.00916.94
7.2.120.0030.01016.82
7.2.110.0060.00616.66
7.2.100.0070.00716.72
7.2.90.0060.00816.80
7.2.80.0050.00616.88
7.2.70.0100.00616.80
7.2.60.0040.01016.86
7.2.50.0050.00716.77
7.2.40.0070.00716.90
7.2.30.0050.01016.90
7.2.20.0020.00916.96
7.2.10.0080.00716.85
7.2.00.0050.00917.71
7.1.330.0110.00415.72
7.1.320.0070.01015.66
7.1.310.0060.00615.54
7.1.300.0030.01015.46
7.1.290.0040.01115.70
7.1.280.0070.00315.62
7.1.270.0000.01215.73
7.1.260.0070.00315.77
7.1.250.0050.00715.81
7.1.200.0080.00415.67
7.1.100.0080.00818.13
7.1.70.0000.00716.88
7.1.60.0040.01519.82
7.1.50.0070.01116.73
7.1.00.0030.07722.42
7.0.200.0100.00316.66
7.0.140.0100.06722.08
7.0.60.0030.04019.94
7.0.50.0130.03317.88
7.0.40.0030.04320.02
7.0.30.0270.08720.30
7.0.20.0270.08320.23
7.0.10.0170.04720.30
7.0.00.0130.08020.30
5.6.280.0000.07720.93
5.6.210.0030.08720.67
5.6.200.0030.07718.18
5.6.190.0070.08020.68
5.6.180.4100.02720.49
5.6.170.0270.08020.56
5.6.160.0030.04020.56
5.6.150.0030.06318.28
5.6.140.0070.04018.16
5.6.130.0170.08018.18
5.6.120.0070.05721.03
5.6.110.0070.05720.97
5.6.100.0100.06021.00
5.6.90.0030.07721.12
5.6.80.0030.05020.37
5.6.70.0300.07320.49
5.5.350.0170.04720.46
5.5.340.0300.02718.14
5.5.330.0100.08320.40
5.5.320.0270.08720.27
5.5.310.0270.07320.36
5.5.300.0000.04017.97
5.5.290.0030.08717.98
5.5.280.0070.08320.69
5.5.270.0070.04320.88
5.5.260.0030.08320.73
5.5.250.0130.08320.69
5.5.240.0170.05720.19
5.4.450.0670.06719.61
5.4.440.0770.07019.20
5.4.430.0170.05319.55
5.4.420.0500.06019.60
5.4.410.0170.06019.04
5.4.400.0200.06718.51
5.4.390.0470.07018.56
5.4.380.0300.04718.79
5.4.370.0100.05718.75
5.4.360.0200.06718.73
5.4.350.0120.10712.03
5.4.340.0060.05812.02
5.4.320.0090.03812.51
5.4.310.0080.04312.50
5.4.300.0120.04212.51
5.4.290.0060.03812.50
5.4.280.0060.03612.40
5.4.270.0070.04512.40
5.4.260.0090.03412.40
5.4.250.0070.04718.94
5.4.240.0100.04718.73
5.4.230.0030.05718.73
5.4.220.0030.05718.95
5.4.210.0100.04718.79
5.4.200.0130.04718.91
5.4.190.0130.04718.70
5.4.180.0030.05718.70
5.4.170.0070.05018.88
5.4.160.0070.05718.69
5.4.150.0100.05018.86
5.4.140.0100.06716.52
5.4.130.0070.04716.42
5.4.120.0100.04016.41
5.4.110.0030.06016.50
5.4.100.0000.05016.42
5.4.90.0000.05316.48
5.4.80.0030.05016.34
5.4.70.0030.05016.37
5.4.60.0070.04316.49
5.4.50.0030.06016.31
5.4.40.0170.04016.54
5.4.30.0100.05016.41
5.4.20.0170.04716.54
5.4.10.0000.05316.54
5.4.00.0000.06715.79
5.3.290.0080.03612.80
5.3.280.0030.05014.43
5.3.270.0170.04014.70
5.3.260.0100.05314.59
5.3.250.0070.06314.43
5.3.240.0000.07314.68
5.3.230.0070.05014.82
5.3.220.0070.04714.57
5.3.210.0070.07314.40
5.3.200.0130.04014.40
5.3.190.0030.06014.75
5.3.180.0030.05014.65
5.3.170.0000.08014.79
5.3.160.0030.05014.39
5.3.150.0100.04714.63
5.3.140.0030.04714.64
5.3.130.0130.05314.46
5.3.120.0070.05014.52
5.3.110.0030.06314.46
5.3.100.0000.05314.26
5.3.90.0070.05313.92
5.3.80.0100.06014.24
5.3.70.0070.07014.02
5.3.60.0100.04714.16
5.3.50.0100.05713.94
5.3.40.0030.05013.78
5.3.30.0000.05013.90
5.3.20.0070.04313.72
5.3.10.0000.04713.67
5.3.00.0030.05013.61
5.2.170.0000.04311.30
5.2.160.0030.04011.10
5.2.150.0030.05011.22
5.2.140.0070.04011.23
5.2.130.0070.03311.18
5.2.120.0030.04011.09
5.2.110.0030.03710.93
5.2.100.0000.04011.00
5.2.90.0030.03711.18
5.2.80.0030.05311.07
5.2.70.0070.03711.17
5.2.60.0070.03711.12
5.2.50.0000.04311.01
5.2.40.0130.03011.06
5.2.30.0030.04311.19
5.2.20.0070.04011.03
5.2.10.0000.04310.86
5.2.00.0100.04310.72
5.1.60.0030.03710.00
5.1.50.0070.0339.99
5.1.40.0070.03710.07
5.1.30.0070.03310.32
5.1.20.0000.03710.26
5.1.10.0000.05010.23
5.1.00.0070.03710.13
5.0.50.0030.0278.46
5.0.40.0070.0308.46
5.0.30.0030.0408.31
5.0.20.0000.0278.16
5.0.10.0030.0278.23
5.0.00.0000.0508.07
4.4.90.0070.0207.24
4.4.80.0000.0237.24
4.4.70.0000.0207.24
4.4.60.0070.0177.24
4.4.50.0070.0177.24
4.4.40.0000.0337.24
4.4.30.0030.0207.24
4.4.20.0030.0207.24
4.4.10.0030.0277.24
4.4.00.0030.0337.24
4.3.110.0070.0177.24
4.3.100.0000.0237.24
4.3.90.0000.0277.24
4.3.80.0000.0337.24
4.3.70.0030.0177.24
4.3.60.0030.0207.24
4.3.50.0030.0207.24
4.3.40.0030.0377.24
4.3.30.0000.0277.24
4.3.20.0030.0207.24
4.3.10.0000.0237.24
4.3.00.0030.0206.53

preferences:
39.04 ms | 401 KiB | 5 Q