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.0060.00918.18
8.3.50.0120.00722.83
8.3.40.0070.00718.89
8.3.30.0070.00718.92
8.3.20.0000.00720.13
8.3.10.0080.00023.66
8.3.00.0050.00319.26
8.2.180.0100.00616.36
8.2.170.0140.00322.96
8.2.160.0070.00720.35
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0060.00326.16
8.2.120.0070.00020.95
8.2.110.0000.00922.07
8.2.100.0080.00319.36
8.2.90.0040.00419.07
8.2.80.0000.00817.97
8.2.70.0030.00617.63
8.2.60.0030.00617.77
8.2.50.0040.00418.07
8.2.40.0050.00518.33
8.2.30.0000.00717.97
8.2.20.0040.00417.69
8.2.10.0000.00718.13
8.2.00.0040.00417.56
8.1.280.0070.00725.92
8.1.270.0050.00323.91
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0030.00623.91
8.1.230.0070.00419.07
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0000.00917.23
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0050.00218.55
8.1.160.0000.00722.02
8.1.150.0040.00418.76
8.1.140.0070.00017.39
8.1.130.0000.00717.87
8.1.120.0050.00217.37
8.1.110.0000.00917.39
8.1.100.0030.00717.36
8.1.90.0070.00017.46
8.1.80.0000.00817.44
8.1.70.0000.00717.38
8.1.60.0030.00617.41
8.1.50.0030.00517.48
8.1.40.0070.00417.42
8.1.30.0000.00817.56
8.1.20.0030.00717.44
8.1.10.0050.00317.48
8.1.00.0040.00417.48
8.0.300.0080.00018.77
8.0.290.0000.00716.63
8.0.280.0040.00418.44
8.0.270.0070.00017.26
8.0.260.0070.00017.25
8.0.250.0030.00516.83
8.0.240.0000.00816.97
8.0.230.0070.00017.01
8.0.220.0030.00316.79
8.0.210.0030.00316.85
8.0.200.0060.00016.91
8.0.190.0040.00416.84
8.0.180.0000.00716.90
8.0.170.0000.00816.90
8.0.160.0000.00716.83
8.0.150.0070.00016.65
8.0.140.0050.00316.79
8.0.130.0030.00313.30
8.0.120.0030.00516.69
8.0.110.0070.00016.84
8.0.100.0090.00016.89
8.0.90.0040.00416.72
8.0.80.0060.00916.77
8.0.70.0040.00416.70
8.0.60.0040.00416.87
8.0.50.0000.00716.81
8.0.30.0120.00816.96
8.0.20.0130.00617.40
8.0.10.0000.00717.00
8.0.00.0110.00616.68
7.4.330.0050.00015.00
7.4.320.0070.00016.39
7.4.300.0000.00716.41
7.4.290.0000.00716.48
7.4.280.0000.00816.28
7.4.270.0030.00316.45
7.4.260.0030.00516.53
7.4.250.0040.00416.38
7.4.240.0020.00516.46
7.4.230.0000.00816.23
7.4.220.0070.01016.56
7.4.210.0090.01116.42
7.4.200.0040.00416.23
7.4.160.0060.00916.42
7.4.150.0090.01517.40
7.4.140.0090.01217.86
7.4.130.0090.00716.41
7.4.120.0100.00716.54
7.4.110.0100.01316.35
7.4.100.0120.00416.41
7.4.90.0100.00716.46
7.4.80.0190.00519.39
7.4.70.0110.00816.62
7.4.60.0110.00716.54
7.4.50.0050.00016.37
7.4.40.0040.01116.54
7.4.30.0090.01216.36
7.4.00.0070.00715.04
7.3.330.0000.00513.16
7.3.320.0030.00313.11
7.3.310.0000.00716.19
7.3.300.0030.00316.30
7.3.290.0120.00316.21
7.3.280.0050.01216.27
7.3.270.0120.00617.40
7.3.260.0110.01416.53
7.3.250.0120.00716.27
7.3.240.0110.00616.51
7.3.230.0100.00616.45
7.3.210.0090.01216.25
7.3.200.0100.00719.39
7.3.190.0140.00916.30
7.3.180.0160.00616.11
7.3.170.0100.00716.27
7.3.160.0030.01316.36
7.3.120.0090.00914.72
7.3.110.0070.01014.81
7.3.100.0080.00614.58
7.3.90.0040.00714.83
7.3.80.0070.00814.64
7.3.70.0050.00914.72
7.3.60.0030.01314.46
7.3.50.0050.00914.79
7.3.40.0030.00814.73
7.3.30.0100.00314.71
7.3.20.0090.00716.61
7.3.10.0070.00616.54
7.3.00.0050.00916.50
7.2.330.0130.00516.76
7.2.320.0100.00616.39
7.2.310.0130.00416.80
7.2.300.0110.00516.71
7.2.290.0130.00916.56
7.2.250.0070.01214.90
7.2.240.0070.01315.03
7.2.230.0020.01314.81
7.2.220.0020.01614.92
7.2.210.0070.00614.86
7.2.200.0030.01014.98
7.2.190.0060.00614.90
7.2.180.0090.00614.94
7.2.170.0050.00715.03
7.2.60.0230.00016.80
7.2.00.0120.00619.56
7.1.330.0050.00915.57
7.1.320.0030.01315.57
7.1.310.0070.00615.50
7.1.300.0050.00815.56
7.1.290.0040.00915.67
7.1.280.0050.00515.67
7.1.270.0050.00815.64
7.1.260.0020.01415.56
7.1.200.0090.00615.61
7.1.100.0000.01118.08
7.1.70.0040.00417.15
7.1.60.0070.01519.40
7.1.50.0040.01216.82
7.1.00.0000.08022.33
7.0.200.0050.00316.70
7.0.140.0030.07022.11
7.0.60.0000.08720.01
7.0.50.0000.04317.98
7.0.40.0070.04320.30
7.0.30.0230.06320.08
7.0.20.0200.06720.09
7.0.10.0070.06720.06
7.0.00.0070.08320.12
5.6.280.0100.06721.16
5.6.210.0070.08720.46
5.6.200.0030.08318.19
5.6.190.0100.03720.48
5.6.180.0230.04320.63
5.6.170.0230.04020.44
5.6.160.0070.08020.48
5.6.150.0030.05018.14
5.6.140.0030.08718.29
5.6.130.0070.05018.27
5.6.120.0100.03321.04
5.6.110.0100.04321.04
5.6.100.0070.06320.91
5.6.90.0070.08320.96
5.6.80.0070.07020.41
5.5.350.0170.04720.41
5.5.340.0070.07717.98
5.5.330.0070.08320.40
5.5.320.0270.05320.36
5.5.310.0330.05320.37
5.5.300.0030.05017.93
5.5.290.0000.04317.97
5.5.280.0070.08720.86
5.5.270.0030.06720.81
5.5.260.0070.04720.78
5.5.250.0030.08320.72
5.5.240.0100.07020.30
5.4.450.0200.05719.20
5.4.440.0570.04719.49
5.4.430.0530.04719.49
5.4.420.0270.04319.41
5.4.410.0430.04019.04
5.4.400.0730.03719.23
5.4.390.0630.05019.31
5.4.380.0430.06018.57
5.4.370.0600.07018.54
5.4.360.0530.05318.79
5.4.350.0330.04718.62
5.4.340.0470.04018.74
5.4.320.0050.03612.52
5.4.310.0090.03512.52
5.4.300.0050.03712.52
5.4.290.0010.04312.51
5.4.280.0070.03412.41
5.4.270.0050.03712.41
5.4.260.0070.03512.41
5.4.250.0040.03912.41
5.4.240.0080.03412.41
5.4.230.0090.04012.41
5.4.220.0060.03612.40
5.4.210.0100.03512.40
5.4.200.0060.03612.40
5.4.190.0080.03312.40
5.4.180.0060.04312.40
5.4.170.0030.04312.41
5.4.160.0080.04512.40
5.4.150.0050.03912.40
5.4.140.0100.03812.09
5.4.130.0090.03512.07
5.4.120.0060.03512.03
5.4.110.0050.04112.02
5.4.100.0060.04212.03
5.4.90.0080.04012.03
5.4.80.0070.03712.02
5.4.70.0100.03512.02
5.4.60.0090.03512.02
5.4.50.0070.03912.02
5.4.40.0060.03812.01
5.4.30.0070.03812.01
5.4.20.0050.03912.01
5.4.10.0080.04212.00
5.4.00.0040.03611.49
5.3.290.0050.03812.80
5.3.280.0050.03712.70
5.3.270.0080.04312.72
5.3.260.0130.04112.72
5.3.250.0060.04012.72
5.3.240.0080.03912.72
5.3.230.0080.04112.71
5.3.220.0080.04212.68
5.3.210.0050.04212.68
5.3.200.0110.04012.68
5.3.190.0090.04012.68
5.3.180.0040.03712.68
5.3.170.0040.03812.67
5.3.160.0100.03812.67
5.3.150.0080.04212.67
5.3.140.0080.03912.66
5.3.130.0040.04512.66
5.3.120.0080.03412.66
5.3.110.0030.03912.66
5.3.100.0060.03512.12
5.3.90.0060.03512.10
5.3.80.0050.03612.09
5.3.70.0080.03512.09
5.3.60.0060.03512.07
5.3.50.0060.03612.02
5.3.40.0070.04212.02
5.3.30.0060.03911.98
5.3.20.0050.04011.75
5.3.10.0060.03811.73
5.3.00.0020.03711.71
5.2.170.0040.0319.21
5.2.160.0030.0379.21
5.2.150.0030.0399.21
5.2.140.0030.0319.21
5.2.130.0020.0359.17
5.2.120.0030.0299.17
5.2.110.0010.0319.17
5.2.100.0040.0319.17
5.2.90.0050.0279.17
5.2.80.0060.0309.17
5.2.70.0050.0299.18
5.2.60.0050.0299.13
5.2.50.0040.0299.10
5.2.40.0040.0349.07
5.2.30.0030.0299.05
5.2.20.0030.0299.04
5.2.10.0040.0278.95
5.2.00.0060.0338.81
5.1.60.0030.0248.09
5.1.50.0080.0278.08
5.1.40.0060.0278.06
5.1.30.0070.0258.41
5.1.20.0050.0298.43
5.1.10.0060.0248.16
5.1.00.0030.0268.16
5.0.50.0020.0216.64
5.0.40.0030.0186.50
5.0.30.0070.0386.31
5.0.20.0020.0206.27
5.0.10.0050.0226.26
5.0.00.0030.0306.25
4.4.90.0030.0144.78
4.4.80.0030.0144.76
4.4.70.0020.0174.75
4.4.60.0030.0154.75
4.4.50.0000.0184.77
4.4.40.0030.0284.71
4.4.30.0020.0164.76
4.4.20.0020.0164.85
4.4.10.0040.0144.85
4.4.00.0040.0284.76
4.3.110.0020.0174.67
4.3.100.0030.0144.66
4.3.90.0040.0134.63
4.3.80.0030.0244.58
4.3.70.0030.0164.63
4.3.60.0020.0154.62
4.3.50.0000.0174.63
4.3.40.0020.0244.54
4.3.30.0000.0183.29
4.3.20.0020.0173.25
4.3.10.0020.0173.22
4.3.00.0030.01315.63

preferences:
42.55 ms | 401 KiB | 5 Q