3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('value', 'Hello World'); abstract class ParentClass { const TEST_CONSTANT = null; public function __construct() { if (!defined(self::TEST_CONSTANT)) { throw new Exception("Please define TEST_CONSTANT!"); } } abstract protected function someFunction(); } class ChildClass extends ParentClass { const TEST_CONSTANT = "value"; 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.0160.00018.68
8.3.50.0110.01221.99
8.3.40.0100.01018.71
8.3.30.0000.01518.71
8.3.20.0070.00020.21
8.3.10.0060.00320.66
8.3.00.0090.00018.94
8.2.180.0080.01116.63
8.2.170.0080.00622.96
8.2.160.0100.00322.08
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0050.00221.12
8.2.120.0000.00826.35
8.2.110.0050.00522.24
8.2.100.0000.01117.84
8.2.90.0040.00417.84
8.2.80.0060.00317.97
8.2.70.0060.00317.50
8.2.60.0040.00417.93
8.2.50.0080.00418.09
8.2.40.0030.00620.65
8.2.30.0000.00819.43
8.2.20.0000.00717.73
8.2.10.0000.00717.94
8.2.00.0000.00718.07
8.1.280.0120.00325.92
8.1.270.0000.00823.96
8.1.260.0040.00428.09
8.1.250.0000.00728.09
8.1.240.0100.00022.51
8.1.230.0090.00322.75
8.1.220.0060.00317.79
8.1.210.0060.00318.85
8.1.200.0110.00017.35
8.1.190.0000.00817.23
8.1.180.0030.00618.10
8.1.170.0070.00318.48
8.1.160.0050.00220.61
8.1.150.0070.00018.82
8.1.140.0080.00019.50
8.1.130.0040.00417.54
8.1.120.0050.00217.32
8.1.110.0000.00717.32
8.1.100.0040.00417.45
8.1.90.0040.00417.45
8.1.80.0050.00217.32
8.1.70.0030.00617.38
8.1.60.0040.00417.43
8.1.50.0030.00617.50
8.1.40.0100.00017.47
8.1.30.0030.00617.60
8.1.20.0060.00317.34
8.1.10.0030.00617.58
8.1.00.0000.00817.44
8.0.300.0070.00020.03
8.0.290.0080.00016.75
8.0.280.0070.00018.45
8.0.270.0080.00017.30
8.0.260.0040.00417.21
8.0.250.0030.00317.01
8.0.240.0040.00417.06
8.0.230.0000.00716.88
8.0.220.0050.00216.96
8.0.210.0080.00016.91
8.0.200.0000.00616.95
8.0.190.0050.00316.91
8.0.180.0040.00416.98
8.0.170.0040.00416.98
8.0.160.0070.00016.89
8.0.150.0030.00316.94
8.0.140.0030.00316.77
8.0.130.0000.00613.42
8.0.120.0030.00616.95
8.0.110.0000.00816.87
8.0.100.0040.00416.93
8.0.90.0040.00416.98
8.0.80.0030.01316.94
8.0.70.0040.00416.88
8.0.60.0000.00816.98
8.0.50.0050.00217.01
8.0.30.0090.00917.12
8.0.20.0100.00817.40
8.0.10.0000.00716.88
8.0.00.0100.00916.74
7.4.330.0000.00516.70
7.4.320.0000.00616.49
7.4.300.0060.00016.46
7.4.290.0030.00316.47
7.4.280.0040.00416.54
7.4.270.0030.00316.37
7.4.260.0030.00616.49
7.4.250.0030.00316.32
7.4.240.0000.00716.40
7.4.230.0040.00416.33
7.4.220.0100.00716.44
7.4.210.0120.00316.45
7.4.200.0050.00216.35
7.4.160.0030.01616.37
7.4.150.0080.00817.40
7.4.140.0150.00817.86
7.4.130.0110.00516.43
7.4.120.0060.01316.41
7.4.110.0100.00616.31
7.4.100.0110.01116.45
7.4.90.0110.01016.50
7.4.80.0130.00919.39
7.4.70.0050.01016.52
7.4.60.0090.00916.45
7.4.50.0000.01616.39
7.4.40.0120.00316.59
7.4.30.0070.01516.57
7.4.00.0060.00814.84
7.3.330.0000.00613.14
7.3.320.0060.00013.22
7.3.310.0070.00016.46
7.3.300.0070.00016.37
7.3.290.0000.00716.39
7.3.280.0050.01216.37
7.3.270.0060.01417.40
7.3.260.0040.01416.43
7.3.250.0070.01716.38
7.3.240.0090.00916.41
7.3.230.0100.00616.39
7.3.210.0060.00916.39
7.3.200.0040.01516.64
7.3.190.0100.01016.36
7.3.180.0110.00516.39
7.3.170.0120.00616.50
7.3.160.0200.00216.43
7.3.120.0060.01314.95
7.3.110.0030.01014.65
7.3.100.0070.01014.68
7.3.90.0040.01114.82
7.3.80.0000.01314.82
7.3.70.0030.00614.59
7.3.60.0080.00614.73
7.3.50.0030.00614.70
7.3.40.0000.01414.71
7.3.30.0090.00614.56
7.3.20.0080.00316.82
7.3.10.0150.00516.38
7.3.00.0120.00916.44
7.2.330.0100.01016.52
7.2.320.0150.00616.68
7.2.310.0070.01016.71
7.2.300.0090.01216.54
7.2.290.0130.00716.67
7.2.250.0090.00914.90
7.2.240.0080.01114.73
7.2.230.0090.00614.81
7.2.220.0110.00014.96
7.2.210.0060.00614.79
7.2.200.0060.00615.13
7.2.190.0060.00915.05
7.2.180.0050.00814.98
7.2.170.0070.00714.79
7.2.160.0100.00314.73
7.2.150.0130.00316.93
7.2.140.0040.00816.59
7.2.130.0090.00816.63
7.2.120.0190.00516.67
7.2.110.0160.00716.58
7.2.100.0090.00816.58
7.2.90.0100.00716.60
7.2.80.0110.00616.55
7.2.70.0150.00316.54
7.2.60.0050.00916.50
7.2.50.0090.00816.57
7.2.40.0190.00616.54
7.2.30.0130.00516.65
7.2.20.0160.00716.61
7.2.10.0100.00916.46
7.2.00.0070.00817.44
7.1.330.0150.00415.88
7.1.320.0070.00715.69
7.1.310.0030.00915.68
7.1.300.0090.00315.55
7.1.290.0000.01115.23
7.1.280.0030.01215.75
7.1.270.0030.00615.92
7.1.260.0060.00315.74
7.1.250.0120.00815.41
7.1.240.0130.00015.84
7.1.230.0080.00315.74
7.1.220.0000.00915.79
7.1.210.0030.00715.48
7.1.200.0070.00315.66
7.1.190.0000.01615.77
7.1.180.0110.00415.84
7.1.170.0070.00715.43
7.1.160.0080.00415.61
7.1.150.0030.00615.77
7.1.140.0030.00915.74
7.1.130.0070.00715.80
7.1.120.0090.00615.71
7.1.110.0120.00415.89
7.1.100.0050.00716.69
7.1.90.0040.00815.63
7.1.80.0000.01115.78
7.1.70.0040.00516.39
7.1.60.0080.01217.52
7.1.50.0090.00716.35
7.1.40.0000.01015.77
7.1.30.0060.00715.69
7.1.20.0030.00615.57
7.1.10.0040.00815.80
7.1.00.0110.03519.08
7.0.330.0060.00915.38
7.0.320.0070.00715.38
7.0.310.0040.00715.31
7.0.300.0050.00515.30
7.0.290.0060.00915.40
7.0.280.0060.00915.49
7.0.270.0110.00415.06
7.0.260.0080.00615.34
7.0.250.0000.01415.51
7.0.240.0030.01015.43
7.0.230.0030.01215.50
7.0.220.0030.00615.49
7.0.210.0100.00315.54
7.0.200.0160.00214.93
7.0.190.0040.00415.43
7.0.180.0080.00415.50
7.0.170.0000.01415.25
7.0.160.0000.01015.34
7.0.150.0030.01015.29
7.0.140.0000.01515.66
7.0.130.0060.00615.21
7.0.120.0030.01015.53
7.0.110.0060.00615.50
7.0.100.0000.01415.49
7.0.90.0060.00615.27
7.0.80.0100.00315.27
7.0.70.0140.00015.31
7.0.60.0120.04018.56
7.0.50.0020.02716.67
7.0.40.0060.02416.91
7.0.30.0050.04016.66
7.0.20.0130.02016.75
7.0.10.0030.04016.74
7.0.00.0050.02916.88
5.6.400.0000.01414.34
5.6.390.0060.00314.11
5.6.380.0060.00314.35
5.6.370.0000.01214.18
5.6.360.0040.00714.48
5.6.350.0030.01014.59
5.6.340.0090.00314.44
5.6.330.0060.00914.11
5.6.320.0060.00614.23
5.6.310.0090.00314.43
5.6.300.0000.01814.38
5.6.290.0060.00814.27
5.6.280.0060.02117.72
5.6.270.0030.01014.04
5.6.260.0060.00314.39
5.6.250.0040.00714.46
5.6.240.0060.00314.29
5.6.230.0090.00614.16
5.6.220.0070.00314.11
5.6.210.0100.04217.53
5.6.200.0040.02416.34
5.6.190.0030.03717.59
5.6.180.0080.02917.51
5.6.170.0050.02917.35
5.6.160.0060.04617.26
5.6.150.0050.03816.26
5.6.140.0070.03016.18
5.6.130.0030.04816.22
5.6.120.0080.03217.77
5.6.110.0030.04817.70
5.6.100.0100.03017.69
5.6.90.0030.05017.69
5.6.80.0030.04617.24
5.6.70.0070.00714.01
5.6.60.0100.00314.32
5.6.50.0040.00414.09
5.6.40.0070.00714.28
5.6.30.0000.01414.14
5.6.20.0030.00914.12
5.6.10.0000.01114.20
5.6.00.0070.00314.29
5.5.380.0120.00014.51
5.5.370.0040.00814.23
5.5.360.0090.00613.90
5.5.350.0250.03517.22
5.5.340.0100.04716.05
5.5.330.0050.05117.40
5.5.320.0340.03917.23
5.5.310.0130.02617.29
5.5.300.0090.04216.24
5.5.290.0030.03816.06
5.5.280.0020.02617.76
5.5.270.0080.02217.50
5.5.260.0060.04417.56
5.5.250.0050.03817.42
5.5.240.0030.04117.18
5.5.230.0000.00914.32
5.5.220.0030.01014.37
5.5.210.0060.00914.34
5.5.200.0060.00914.29
5.5.190.0060.00314.51
5.5.180.0040.00414.34
5.5.170.0090.00314.22
5.5.160.0110.00414.32
5.5.150.0060.00914.11
5.5.140.0030.00614.27
5.5.130.0100.00614.32
5.5.120.0040.01414.31
5.5.110.0110.00814.21
5.5.100.0070.00713.95
5.5.90.0060.01214.26
5.5.80.0080.00314.43
5.5.70.0070.01014.14
5.5.60.0000.01614.06
5.5.50.0100.00714.07
5.5.40.0000.01514.25
5.5.30.0030.00614.05
5.5.20.0070.01014.13
5.5.10.0030.01314.17
5.5.00.0130.00313.96

preferences:
45.03 ms | 401 KiB | 5 Q