3v4l.org

run code in 300+ PHP versions simultaneously
<?PHP ABSTRACT CLASS Base { protected static $stub = ['baz']; //final public function boot() static public function boot() { print __METHOD__.'-> '.get_called_class().PHP_EOL; array_walk(static::$stub, function() { print __METHOD__.'-> '.get_called_class().PHP_EOL; }); } public function __construct() { self::boot(); print __METHOD__.'-> '.get_called_class().PHP_EOL; array_walk(static::$stub, function() { print __METHOD__.'-> '.get_called_class().PHP_EOL; }); } } CLASS Sub EXTENDS Base { } Sub::boot(); print PHP_EOL; ?>

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.56
8.3.50.0140.00322.73
8.3.40.0110.00418.76
8.3.30.0070.00719.04
8.3.20.0000.00720.34
8.3.10.0000.00823.39
8.3.00.0090.00019.19
8.2.180.0040.01116.75
8.2.170.0140.00022.96
8.2.160.0040.00920.27
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0000.00720.95
8.2.110.0090.00022.23
8.2.100.0070.00318.16
8.2.90.0110.00318.93
8.2.80.0000.00817.97
8.2.70.0040.00417.50
8.2.60.0080.00017.90
8.2.50.0040.00718.07
8.2.40.0060.00318.16
8.2.30.0040.00418.05
8.2.20.0040.00417.60
8.2.10.0000.00718.05
8.2.00.0000.00717.61
8.1.280.0090.00625.92
8.1.270.0080.00023.91
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0000.00922.19
8.1.230.0040.00719.08
8.1.220.0030.00617.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0080.00017.13
8.1.180.0040.00418.10
8.1.170.0060.00318.32
8.1.160.0000.00722.05
8.1.150.0040.00418.83
8.1.140.0040.00417.35
8.1.130.0040.00417.81
8.1.120.0040.00417.32
8.1.110.0030.00517.46
8.1.100.0080.00317.42
8.1.90.0050.00217.36
8.1.80.0060.00317.30
8.1.70.0070.00017.44
8.1.60.0040.00417.45
8.1.50.0080.00017.39
8.1.40.0000.00917.44
8.1.30.0050.00317.64
8.1.20.0030.00617.52
8.1.10.0030.00517.43
8.1.00.0070.00017.50
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0040.00418.36
8.0.270.0030.00317.10
8.0.260.0000.00817.13
8.0.250.0000.00716.98
8.0.240.0050.00216.95
8.0.230.0030.00416.88
8.0.220.0030.00316.86
8.0.210.0030.00316.89
8.0.200.0000.00616.78
8.0.190.0000.00916.87
8.0.180.0000.00716.93
8.0.170.0040.00416.91
8.0.160.0000.00716.77
8.0.150.0070.00016.74
8.0.140.0080.00016.77
8.0.130.0000.00513.27
8.0.120.0040.00416.81
8.0.110.0000.00816.80
8.0.100.0040.00416.76
8.0.90.0000.00716.93
8.0.80.0140.00316.88
8.0.70.0040.00416.79
8.0.60.0040.00416.88
8.0.50.0080.00016.69
8.0.30.0150.00717.19
8.0.20.0110.01317.40
8.0.10.0000.00717.00
8.0.00.0080.01216.54
7.4.330.0000.00515.09
7.4.320.0000.00616.34
7.4.300.0000.00716.34
7.4.290.0030.00316.54
7.4.280.0050.00316.37
7.4.270.0080.00016.44
7.4.260.0030.00316.54
7.4.250.0030.00516.35
7.4.240.0020.00516.39
7.4.230.0030.00316.41
7.4.220.0120.00416.54
7.4.210.0090.00916.49
7.4.200.0040.00416.55
7.4.160.0120.00316.61
7.4.150.0150.00617.40
7.4.140.0080.01317.86
7.4.130.0060.01016.42
7.4.120.0050.01116.47
7.4.110.0070.01016.53
7.4.100.0070.01016.44
7.4.90.0120.00616.60
7.4.80.0090.01219.39
7.4.70.0080.00816.52
7.4.60.0060.01116.32
7.4.50.0030.00616.55
7.4.40.0060.01016.50
7.4.30.0160.00316.45
7.4.00.0090.00614.84
7.3.330.0060.00013.14
7.3.320.0030.00313.27
7.3.310.0000.00716.13
7.3.300.0030.00316.16
7.3.290.0040.01716.30
7.3.280.0090.00716.28
7.3.270.0100.00717.40
7.3.260.0180.00416.47
7.3.250.0070.01016.37
7.3.240.0100.00616.14
7.3.230.0070.01016.39
7.3.210.0170.00316.55
7.3.200.0030.01319.39
7.3.190.0060.01416.60
7.3.180.0120.00916.25
7.3.170.0030.01316.30
7.3.160.0070.00816.28
7.3.10.0090.01316.30
7.3.00.0190.00916.51
7.2.330.0120.00616.36
7.2.320.0030.01416.82
7.2.310.0030.01516.54
7.2.300.0100.01016.40
7.2.290.0100.00716.47
7.2.130.0130.01316.51
7.2.120.0190.01016.23
7.2.110.0140.00816.71
7.2.100.0130.01016.46
7.2.90.0230.00316.38
7.2.80.0120.01616.43
7.2.70.0220.01816.43
7.2.60.0110.01116.66
7.2.50.0140.01016.55
7.2.40.0210.00816.89
7.2.30.0330.00416.77
7.2.20.0130.00416.29
7.2.10.0070.01116.24
7.2.00.0130.00817.84
7.1.250.0220.00415.25
7.1.200.0090.00315.61
7.1.100.0000.01017.88
7.1.70.0060.00317.19
7.1.60.0080.01219.40
7.1.50.0060.01016.81
7.1.00.0000.08022.45
7.0.200.0000.00816.70
7.0.140.0000.07722.04
7.0.60.0100.06319.79
7.0.50.0000.05317.85
7.0.40.0070.05020.29
7.0.30.0330.07320.24
7.0.20.0330.04020.12
7.0.10.0230.07720.06
7.0.00.0100.05020.05
5.6.280.0000.07321.12
5.6.210.0030.06020.57
5.6.200.0030.08018.16
5.6.190.0170.08320.52
5.6.180.0230.03720.48
5.6.170.0270.07320.46
5.6.160.0130.07720.46
5.6.150.0000.08718.16
5.6.140.0100.08318.15
5.6.130.0070.05718.15
5.6.120.0000.08021.05
5.6.110.0070.09321.14
5.6.100.0170.07321.02
5.6.90.0030.04021.05
5.6.80.0070.07320.41
5.5.350.4170.04320.43
5.5.340.0070.06017.93
5.5.330.0070.07720.39
5.5.320.3070.04720.38
5.5.310.0470.04020.25
5.5.300.0070.08018.08
5.5.290.0100.08317.95
5.5.280.0100.05720.79
5.5.270.0070.04020.77
5.5.260.0170.06320.79
5.5.250.0100.07320.60
5.5.240.0030.03020.27
5.4.450.0300.05019.32
5.4.440.0170.05319.57
5.4.430.0170.05319.64
5.4.420.0270.04719.54
5.4.410.0330.04019.28
5.4.400.0430.03319.32
5.4.390.0700.03319.18
5.4.380.0170.05018.73
5.4.370.0030.06318.74
5.4.360.0230.04318.75
5.4.350.0170.05018.52
5.4.340.0230.04318.57
5.4.320.0050.03912.52
5.4.310.0090.03712.52
5.4.300.0050.04412.52
5.4.290.0080.03412.51
5.4.280.0060.03512.41
5.4.270.0070.03412.41
5.4.260.0050.04112.41
5.4.250.0040.03812.41
5.4.240.0060.04012.41
5.4.230.0080.03412.40
5.4.220.0060.03512.41
5.4.210.0080.03912.40
5.4.200.0090.03412.40
5.4.190.0060.04112.40
5.4.180.0030.04212.40
5.4.170.0040.04312.41
5.4.160.0060.03512.40
5.4.150.0080.03412.40
5.4.140.0060.04312.08
5.4.130.0080.03712.07
5.4.120.0060.05112.03
5.4.110.0070.04212.02
5.4.100.0070.03812.02
5.4.90.0050.03812.03
5.4.80.0040.03712.03
5.4.70.0050.03412.02
5.4.60.0060.03212.02
5.4.50.0030.04112.02
5.4.40.0070.03512.01
5.4.30.0040.04112.00
5.4.20.0050.03512.00
5.4.10.0060.03412.01
5.4.00.0080.03311.49
5.3.290.0060.04012.80
5.3.280.0050.03912.70
5.3.270.0070.04412.72
5.3.260.0060.03812.72
5.3.250.0070.04012.72
5.3.240.0060.03712.72
5.3.230.0070.03612.71
5.3.220.0060.03712.68
5.3.210.0040.04012.68
5.3.200.0110.03512.68
5.3.190.0110.04112.68
5.3.180.0070.04012.67
5.3.170.0030.03912.67
5.3.160.0060.03512.67
5.3.150.0010.04112.67
5.3.140.0060.03812.66
5.3.130.0080.04412.66
5.3.120.0070.03712.65
5.3.110.0070.04312.66
5.3.100.0040.04012.12
5.3.90.0050.03712.10
5.3.80.0100.03112.09
5.3.70.0080.04012.09
5.3.60.0050.03612.08
5.3.50.0090.03412.02
5.3.40.0080.03812.02
5.3.30.0050.03411.98
5.3.20.0040.04311.76
5.3.10.0070.03811.73
5.3.00.0060.04111.71
5.2.170.0060.0289.21
5.2.160.0080.0289.21
5.2.150.0010.0339.21
5.2.140.0050.0299.21
5.2.130.0050.0359.17
5.2.120.0050.0269.17
5.2.110.0030.0299.18
5.2.100.0040.0289.17
5.2.90.0060.0279.17
5.2.80.0060.0409.17
5.2.70.0070.0289.17
5.2.60.0040.0299.13
5.2.50.0050.0289.10
5.2.40.0050.0279.07
5.2.30.0020.0319.05
5.2.20.0040.0329.04
5.2.10.0040.0288.94
5.2.00.0040.0288.80
5.1.60.0020.0298.09
5.1.50.0100.0218.08
5.1.40.0030.0248.06
5.1.30.0060.0228.42
5.1.20.0040.0258.44
5.1.10.0050.0238.16
5.1.00.0060.0268.16
5.0.50.0020.0216.63
5.0.40.0020.0236.50
5.0.30.0030.0306.30
5.0.20.0050.0166.28
5.0.10.0040.0186.26
5.0.00.0040.0306.25
4.4.90.0020.0154.78
4.4.80.0020.0154.76
4.4.70.0030.0144.76
4.4.60.0020.0164.75
4.4.50.0020.0164.77
4.4.40.0060.0244.71
4.4.30.0040.0134.76
4.4.20.0040.0144.84
4.4.10.0040.0144.85
4.4.00.0020.0244.75
4.3.110.0040.0144.67
4.3.100.0040.0164.67
4.3.90.0040.0164.63
4.3.80.0020.0244.58
4.3.70.0030.0164.63
4.3.60.0050.0154.63
4.3.50.0030.0144.63
4.3.40.0020.0234.54
4.3.30.0020.0173.28
4.3.20.0020.0153.26
4.3.10.0040.0213.22
4.3.00.0070.00715.63

preferences:
39.98 ms | 401 KiB | 5 Q