3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class ParentClass { const TEST_CONSTANT = null; public function __construct() { if (!defined('static::TEST_CONSTANT') || empty(static::TEST_CONSTANT)) { throw new Exception("Please define TEST_CONSTANT!"); } } abstract protected function someFunction(); } class ChildClass extends ParentClass { protected function someFunction() { //some functionality here } } $x = new ChildClass();

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.0140.00018.68
8.3.50.0030.01218.02
8.3.40.0070.00718.88
8.3.30.0040.01218.72
8.3.20.0000.00720.21
8.3.10.0000.00820.53
8.3.00.0060.00318.80
8.2.180.0150.00016.38
8.2.170.0150.00022.96
8.2.160.0120.00322.13
8.2.150.0060.00324.18
8.2.140.0000.00824.66
8.2.130.0040.00421.04
8.2.120.0000.00826.35
8.2.110.0030.00619.12
8.2.100.0100.00318.04
8.2.90.0080.00019.22
8.2.80.0000.00817.97
8.2.70.0090.00017.75
8.2.60.0040.00417.68
8.2.50.0060.00318.09
8.2.40.0090.00320.24
8.2.30.0070.00019.43
8.2.20.0000.00817.66
8.2.10.0040.00417.92
8.2.00.0000.00717.92
8.1.280.0030.01025.92
8.1.270.0000.01824.02
8.1.260.0060.00328.09
8.1.250.0070.00028.09
8.1.240.0090.00022.19
8.1.230.0070.00417.82
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0060.00617.36
8.1.190.0000.00917.25
8.1.180.0040.00418.10
8.1.170.0070.00318.46
8.1.160.0040.00420.61
8.1.150.0040.00418.87
8.1.140.0050.00319.49
8.1.130.0070.00017.62
8.1.120.0050.00317.36
8.1.110.0000.00717.38
8.1.100.0040.00417.35
8.1.90.0020.00517.36
8.1.80.0040.00417.37
8.1.70.0050.00517.33
8.1.60.0040.00417.48
8.1.50.0040.00417.38
8.1.40.0000.00917.50
8.1.30.0040.00417.63
8.1.20.0030.00617.45
8.1.10.0000.00817.40
8.1.00.0000.00717.49
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0070.00018.34
8.0.270.0030.00517.24
8.0.260.0000.00617.16
8.0.250.0000.00716.92
8.0.240.0070.00016.91
8.0.230.0000.00716.90
8.0.220.0070.00016.93
8.0.210.0030.00516.89
8.0.200.0000.00717.02
8.0.190.0000.00817.04
8.0.180.0040.00416.95
8.0.170.0080.00016.99
8.0.160.0030.00316.96
8.0.150.0000.00716.79
8.0.140.0040.00416.97
8.0.130.0030.00613.45
8.0.120.0000.00816.93
8.0.110.0040.00416.99
8.0.100.0000.00817.01
8.0.90.0050.00316.96
8.0.80.0030.01316.83
8.0.70.0040.00416.79
8.0.60.0000.00816.96
8.0.50.0000.00816.81
8.0.30.0110.00617.13
8.0.20.0110.01017.40
8.0.10.0000.00816.89
8.0.00.0110.00716.78
7.4.330.0000.00516.83
7.4.320.0000.00816.46
7.4.300.0030.00516.53
7.4.290.0030.00316.41
7.4.280.0000.00816.51
7.4.270.0030.00316.48
7.4.260.0040.00716.44
7.4.250.0040.00416.38
7.4.240.0060.00316.52
7.4.230.0000.00716.32
7.4.220.0100.00716.35
7.4.210.0080.00616.50
7.4.200.0000.00716.53
7.4.160.0040.01116.54
7.4.150.0100.00717.40
7.4.140.0120.00717.86
7.4.130.0130.00416.34
7.4.120.0050.01516.54
7.4.110.0080.00816.79
7.4.100.0060.01616.49
7.4.90.0090.00916.54
7.4.80.0090.00919.39
7.4.70.0030.01416.52
7.4.60.0120.00616.26
7.4.50.0090.00616.36
7.4.40.0040.01216.55
7.4.30.0050.01116.45
7.4.00.0030.01415.10
7.3.330.0030.00313.36
7.3.320.0000.00513.19
7.3.310.0000.00716.35
7.3.300.0000.00916.33
7.3.290.0000.00716.38
7.3.280.0080.01016.39
7.3.270.0090.00917.40
7.3.260.0170.00316.46
7.3.250.0210.01616.33
7.3.240.0140.00316.30
7.3.230.0130.00416.39
7.3.210.0090.00616.43
7.3.200.0190.00016.34
7.3.190.0080.00816.32
7.3.180.0160.00016.27
7.3.170.0060.01016.45
7.3.160.0060.00916.38
7.3.120.0040.01514.66
7.3.110.0090.01015.11
7.3.100.0080.00814.97
7.3.90.0060.01114.58
7.3.80.0090.00614.94
7.3.70.0090.00614.75
7.3.60.0070.01114.65
7.3.50.0080.00414.91
7.3.40.0000.01514.78
7.3.30.0050.00514.89
7.3.20.0060.00616.61
7.3.10.0070.00316.61
7.3.00.0040.01216.59
7.2.330.0130.00616.71
7.2.320.0110.00716.75
7.2.310.0090.00916.43
7.2.300.0090.00916.57
7.2.290.0070.01016.39
7.2.250.0100.01015.02
7.2.240.0060.01215.21
7.2.230.0070.01115.25
7.2.220.0070.01014.89
7.2.210.0030.01314.77
7.2.200.0000.01614.93
7.2.190.0110.00814.93
7.2.180.0040.01214.90
7.2.170.0090.00614.86
7.2.60.0060.01016.73
7.2.00.0000.00919.39
7.1.330.0060.00615.42
7.1.320.0080.00815.75
7.1.310.0050.00515.56
7.1.300.0110.00715.38
7.1.290.0080.00415.46
7.1.280.0100.00715.70
7.1.270.0080.00815.91
7.1.260.0080.00515.54
7.1.200.0100.00315.70
7.1.100.0060.00617.80
7.1.70.0070.00016.87
7.1.60.0120.01219.27
7.1.50.0040.00816.77
7.1.00.0030.07322.40
7.0.200.1730.00314.40
7.0.60.0100.06021.80
7.0.50.0070.06317.92
7.0.40.0070.04320.13
7.0.30.0030.06320.23
7.0.20.0130.04320.30
7.0.10.0200.07020.08
7.0.00.0070.04020.25
5.6.280.0030.04720.89
5.6.210.0100.04720.57
5.6.200.0200.05018.12
5.6.190.0030.04720.48
5.6.180.0230.05720.46
5.6.170.0170.05020.48
5.6.160.0070.08320.48
5.6.150.0030.04718.19
5.6.140.0070.06018.18
5.6.130.0070.08018.29
5.6.120.0100.09020.99
5.6.110.0070.04021.01
5.6.100.0100.08321.12
5.6.90.0170.06720.99
5.6.80.0230.07320.48
5.5.350.0370.03020.45
5.5.340.0100.07718.02
5.5.330.0000.05320.41
5.5.320.0500.04720.21
5.5.310.0200.04020.32
5.5.300.0030.04017.95
5.5.290.0030.04018.02
5.5.280.0070.05020.88
5.5.270.0170.07720.79
5.5.260.0130.08020.80
5.5.250.0030.08720.70
5.5.240.0130.06320.15

preferences:
61.66 ms | 400 KiB | 5 Q