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 { } Base::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.0070.00718.43
8.3.50.0100.00922.90
8.3.40.0040.01118.67
8.3.30.0070.00718.96
8.3.20.0040.00420.13
8.3.10.0080.00023.65
8.3.00.0000.00819.25
8.2.180.0120.00316.34
8.2.170.0100.00722.96
8.2.160.0070.00720.21
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0090.00020.82
8.2.110.0040.01422.13
8.2.100.0000.01119.51
8.2.90.0040.00419.05
8.2.80.0050.00317.97
8.2.70.0040.00417.63
8.2.60.0040.00417.93
8.2.50.0000.00818.07
8.2.40.0060.00318.22
8.2.30.0000.00817.95
8.2.20.0040.00417.75
8.2.10.0000.00718.13
8.2.00.0040.00417.59
8.1.280.0040.01125.92
8.1.270.0080.00023.91
8.1.260.0060.00326.35
8.1.250.0000.00728.09
8.1.240.0030.00623.91
8.1.230.0090.00319.11
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0090.00017.35
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0000.00918.55
8.1.160.0000.00722.02
8.1.150.0040.00418.84
8.1.140.0040.00417.30
8.1.130.0040.00417.77
8.1.120.0040.00417.44
8.1.110.0040.00417.45
8.1.100.0040.00417.37
8.1.90.0040.00417.31
8.1.80.0000.00817.27
8.1.70.0070.00017.34
8.1.60.0060.00317.36
8.1.50.0040.00417.49
8.1.40.0040.00717.49
8.1.30.0050.00317.43
8.1.20.0000.00717.44
8.1.10.0050.00217.38
8.1.00.0040.00417.44
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0000.00718.50
8.0.270.0000.00717.21
8.0.260.0000.00717.24
8.0.250.0000.00816.86
8.0.240.0040.00416.82
8.0.230.0000.00816.95
8.0.220.0030.00316.89
8.0.210.0030.00316.76
8.0.200.0000.00816.92
8.0.190.0000.00816.96
8.0.180.0070.00016.82
8.0.170.0040.00416.95
8.0.160.0030.00316.90
8.0.150.0030.00316.76
8.0.140.0000.00716.68
8.0.130.0050.00013.32
8.0.120.0040.00416.84
8.0.110.0070.00016.78
8.0.100.0040.00416.71
8.0.90.0000.00716.75
8.0.80.0070.01016.79
8.0.70.0030.00516.76
8.0.60.0040.00416.72
8.0.50.0030.00316.69
8.0.30.0160.00917.02
8.0.20.0140.00517.40
8.0.10.0080.00016.94
8.0.00.0140.00316.67
7.4.330.0020.00215.04
7.4.320.0000.00616.45
7.4.300.0000.00816.55
7.4.290.0080.00016.38
7.4.280.0000.00716.55
7.4.270.0030.00316.49
7.4.260.0000.00716.48
7.4.250.0080.00016.45
7.4.240.0050.00216.49
7.4.230.0040.00416.56
7.4.220.0140.00416.53
7.4.210.0140.00716.49
7.4.200.0040.00416.27
7.4.160.0080.00816.45
7.4.150.0050.01517.40
7.4.140.0090.00917.86
7.4.130.0080.00816.48
7.4.120.0070.00916.60
7.4.110.0100.00716.38
7.4.100.0090.00916.33
7.4.90.0030.01416.54
7.4.80.0040.01219.39
7.4.70.0040.01216.49
7.4.60.0080.00816.32
7.4.50.0020.00216.32
7.4.40.0070.01016.53
7.4.30.0080.00816.50
7.4.00.0070.00914.81
7.3.330.0030.00313.29
7.3.320.0050.00013.22
7.3.310.0030.00316.28
7.3.300.0000.00716.24
7.3.290.0060.00916.21
7.3.280.0080.00716.29
7.3.270.0130.00617.40
7.3.260.0160.00316.54
7.3.250.0120.00716.40
7.3.240.0130.00616.49
7.3.230.0040.01516.45
7.3.210.0100.00716.30
7.3.200.0000.02319.39
7.3.190.0100.01316.46
7.3.180.0130.00216.48
7.3.170.0040.01216.30
7.3.160.0100.00916.38
7.3.120.0100.01014.88
7.3.110.0060.00914.96
7.3.100.0100.00314.59
7.3.90.0040.01114.71
7.3.80.0080.00814.76
7.3.70.0060.00914.57
7.3.60.0030.01314.76
7.3.50.0100.00314.47
7.3.40.0070.00714.81
7.3.30.0170.00014.67
7.3.20.0100.00316.52
7.3.10.0090.00616.27
7.3.00.0070.00716.50
7.2.330.0140.00516.70
7.2.320.0080.00816.70
7.2.310.0030.01316.62
7.2.300.0130.00316.72
7.2.290.0070.01416.54
7.2.250.0070.01315.30
7.2.240.0100.01015.11
7.2.230.0100.00614.98
7.2.220.0030.01014.84
7.2.210.0030.01015.18
7.2.200.0070.00715.23
7.2.190.0150.00315.21
7.2.180.0030.01214.77
7.2.170.0040.01215.03
7.2.60.0070.00716.20
7.2.00.0030.01019.38
7.1.330.0070.01015.77
7.1.320.0070.00315.64
7.1.310.0060.00315.39
7.1.300.0000.01315.73
7.1.290.0030.01015.63
7.1.280.0110.00715.32
7.1.270.0040.00715.38
7.1.260.0060.00615.36
7.1.200.0070.00715.50
7.1.100.0030.00617.99
7.1.70.0000.00817.07
7.1.60.0000.01019.40
7.1.50.0190.00316.81
7.1.00.0000.08022.51
7.0.200.0000.00716.33
7.0.140.0030.07322.09
7.0.60.0130.07020.04
7.0.50.0070.08017.95
7.0.40.0100.05320.05
7.0.30.0530.07320.07
7.0.20.0170.09020.23
7.0.10.0070.06320.15
7.0.00.0070.06320.07
5.6.280.0000.09021.00
5.6.210.0100.08320.56
5.6.200.0000.04318.18
5.6.190.0200.03020.48
5.6.180.0230.05320.61
5.6.170.0300.03320.40
5.6.160.0100.08020.57
5.6.150.0000.04018.16
5.6.140.0130.07318.16
5.6.130.0030.04018.27
5.6.120.0000.05721.03
5.6.110.0130.06320.91
5.6.100.0100.04021.00
5.6.90.0100.08320.99
5.6.80.0000.04020.45
5.5.350.0000.03320.54
5.5.340.0070.08317.96
5.5.330.0100.06720.28
5.5.320.0030.04720.36
5.5.310.0130.07320.35
5.5.300.0130.06717.99
5.5.290.0070.04018.04
5.5.280.0100.08320.86
5.5.270.0100.05320.69
5.5.260.0030.09020.97
5.5.250.0030.05020.70
5.5.240.0230.03720.28
5.4.450.0030.05719.23
5.4.440.0270.04719.57
5.4.430.0730.04319.55
5.4.420.0400.04019.48
5.4.410.1030.04019.20
5.4.400.0300.03719.16
5.4.390.0370.04319.09
5.4.380.0100.06018.49
5.4.370.0200.04718.62
5.4.360.0070.07018.57
5.4.350.0170.07318.68
5.4.340.0230.05018.79
5.4.320.0050.03712.52
5.4.310.0110.04012.51
5.4.300.0060.03612.52
5.4.290.0040.04012.51
5.4.280.0060.03512.41
5.4.270.0070.04512.41
5.4.260.0070.03712.41
5.4.250.0020.04212.41
5.4.240.0040.04212.41
5.4.230.0080.03912.40
5.4.220.0060.03612.40
5.4.210.0080.03212.40
5.4.200.0070.03512.41
5.4.190.0090.03312.40
5.4.180.0060.03512.40
5.4.170.0040.04412.41
5.4.160.0050.04112.40
5.4.150.0060.03912.40
5.4.140.0060.04012.08
5.4.130.0070.04312.07
5.4.120.0050.03612.03
5.4.110.0070.04212.03
5.4.100.0070.04012.03
5.4.90.0060.04012.02
5.4.80.0090.04212.03
5.4.70.0080.03712.02
5.4.60.0060.03912.02
5.4.50.0070.04512.02
5.4.40.0060.04112.01
5.4.30.0060.03612.01
5.4.20.0070.03512.00
5.4.10.0080.03312.00
5.4.00.0050.03911.50
5.3.290.0030.04012.80
5.3.280.0060.04812.71
5.3.270.0080.04212.72
5.3.260.0080.04512.72
5.3.250.0090.04412.72
5.3.240.0050.04212.72
5.3.230.0060.04112.71
5.3.220.0080.03712.68
5.3.210.0070.04012.68
5.3.200.0090.03912.68
5.3.190.0050.04112.67
5.3.180.0070.03712.67
5.3.170.0060.04112.67
5.3.160.0070.03712.67
5.3.150.0050.04012.67
5.3.140.0060.03612.66
5.3.130.0100.03912.66
5.3.120.0070.03912.66
5.3.110.0060.03812.66
5.3.100.0080.04312.12
5.3.90.0090.03312.10
5.3.80.0090.03812.09
5.3.70.0090.03812.09
5.3.60.0050.03912.07
5.3.50.0060.03612.02
5.3.40.0070.03912.02
5.3.30.0040.03911.98
5.3.20.0050.04111.76
5.3.10.0070.04411.73
5.3.00.0050.03911.71
5.2.170.0060.0319.21
5.2.160.0060.0379.21
5.2.150.0030.0339.21
5.2.140.0040.0319.20
5.2.130.0060.0299.16
5.2.120.0060.0359.17
5.2.110.0050.0339.18
5.2.100.0030.0359.17
5.2.90.0060.0319.17
5.2.80.0090.0369.17
5.2.70.0050.0309.17
5.2.60.0080.0349.13
5.2.50.0040.0319.09
5.2.40.0060.0269.07
5.2.30.0050.0289.04
5.2.20.0060.0279.03
5.2.10.0050.0318.94
5.2.00.0050.0288.81
5.1.60.0040.0328.09
5.1.50.0050.0308.08
5.1.40.0080.0258.06
5.1.30.0040.0298.41
5.1.20.0070.0298.43
5.1.10.0020.0308.16
5.1.00.0030.0308.16
5.0.50.0070.0216.64
5.0.40.0020.0226.50
5.0.30.0020.0366.30
5.0.20.0060.0256.27
5.0.10.0060.0266.26
5.0.00.0020.0406.25
4.4.90.0030.0174.78
4.4.80.0050.0234.75
4.4.70.0040.0164.75
4.4.60.0040.0204.75
4.4.50.0020.0164.77
4.4.40.0060.0274.71
4.4.30.0020.0164.76
4.4.20.0070.0154.85
4.4.10.0040.0194.85
4.4.00.0030.0254.76
4.3.110.0050.0174.67
4.3.100.0020.0164.66
4.3.90.0030.0184.64
4.3.80.0040.0304.59
4.3.70.0050.0194.63
4.3.60.0050.0164.63
4.3.50.0030.0274.63
4.3.40.0030.0294.54
4.3.30.0030.0213.29
4.3.20.0020.0203.26
4.3.10.0010.0203.22
4.3.00.0030.02015.63

preferences:
39.74 ms | 401 KiB | 5 Q