3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ParentClass { protected function doSomething() { echo "done.\n"; } } class ChildClass extends ParentClass { public function autrefonction() { echo "attempting something.\n"; parent::doSomething(); } } $obj = new ChildClass(); $obj->autrefonction(); ?>

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.00416.50
8.3.50.0130.00821.09
8.3.40.0090.00618.65
8.3.30.0160.00718.44
8.3.20.0000.00820.34
8.3.10.0050.00323.66
8.3.00.0040.00423.48
8.2.180.0180.00316.49
8.2.170.0110.00722.96
8.2.160.0100.00720.36
8.2.150.0060.00324.18
8.2.140.0070.01124.66
8.2.130.0040.00421.13
8.2.120.0000.00826.35
8.2.110.0030.00620.89
8.2.100.0040.00817.91
8.2.90.0000.00819.05
8.2.80.0060.00317.97
8.2.70.0050.00317.50
8.2.60.0000.00717.80
8.2.50.0030.00518.10
8.2.40.0060.00620.46
8.2.30.0030.00320.66
8.2.20.0040.00417.61
8.2.10.0050.00217.98
8.2.00.0040.00418.06
8.1.280.0110.00325.92
8.1.270.0030.00522.15
8.1.260.0070.00028.09
8.1.250.0050.00328.09
8.1.240.0060.00323.97
8.1.230.0040.00817.83
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0000.00917.23
8.1.190.0000.00917.13
8.1.180.0080.00018.10
8.1.170.0040.00418.58
8.1.160.0040.00420.73
8.1.150.0050.00218.82
8.1.140.0000.00819.50
8.1.130.0030.00317.54
8.1.120.0000.00717.29
8.1.110.0070.00317.41
8.1.100.0000.00717.38
8.1.90.0000.00717.34
8.1.80.0080.00017.34
8.1.70.0000.00717.25
8.1.60.0040.00417.58
8.1.50.0000.00817.42
8.1.40.0040.00417.57
8.1.30.0040.00417.70
8.1.20.0080.00017.65
8.1.10.0050.00217.47
8.1.00.0050.00217.50
8.0.300.0000.00818.77
8.0.290.0030.00516.75
8.0.280.0070.00018.41
8.0.270.0030.00317.20
8.0.260.0030.00317.18
8.0.250.0000.00716.85
8.0.240.0050.00216.77
8.0.230.0030.00716.89
8.0.220.0000.00816.84
8.0.210.0030.00316.70
8.0.200.0000.00716.86
8.0.190.0040.00416.91
8.0.180.0070.00016.75
8.0.170.0040.00416.86
8.0.160.0030.00516.78
8.0.150.0050.00316.74
8.0.140.0040.00416.73
8.0.130.0050.00213.27
8.0.120.0110.00016.82
8.0.110.0000.00716.85
8.0.100.0030.00616.84
8.0.90.0030.00316.73
8.0.80.0080.00816.81
8.0.70.0070.00016.71
8.0.60.0040.00416.68
8.0.50.0070.00016.73
8.0.30.0100.01016.81
8.0.20.0090.00917.40
8.0.10.0070.00016.95
8.0.00.0070.01016.66
7.4.330.0060.00015.08
7.4.320.0000.00716.58
7.4.300.0060.00016.49
7.4.290.0070.00016.49
7.4.280.0040.00416.61
7.4.270.0040.00416.61
7.4.260.0080.00016.48
7.4.250.0030.00316.54
7.4.240.0030.00316.47
7.4.230.0030.00316.58
7.4.220.0090.00916.52
7.4.210.0090.00616.46
7.4.200.0030.00316.50
7.4.160.0160.00016.49
7.4.150.0100.00717.40
7.4.140.0110.00917.86
7.4.130.0100.01016.49
7.4.120.0130.00916.60
7.4.110.0130.00316.41
7.4.100.0070.01716.34
7.4.90.0120.00616.38
7.4.80.0100.00719.39
7.4.70.0140.00916.46
7.4.60.0060.01316.52
7.4.50.0000.01216.68
7.4.40.0100.00516.72
7.4.30.0160.00616.58
7.4.10.0120.00614.85
7.4.00.0050.01014.81
7.3.330.0020.00213.22
7.3.320.0030.00313.01
7.3.310.0030.00616.29
7.3.300.0030.00316.21
7.3.290.0090.00816.25
7.3.280.0060.01216.25
7.3.270.0160.00017.40
7.3.260.0060.01116.25
7.3.250.0110.00716.35
7.3.240.0080.00816.29
7.3.230.0090.00916.39
7.3.210.0000.01516.58
7.3.200.0090.00616.57
7.3.190.0190.00716.25
7.3.180.0100.00616.29
7.3.170.0060.01316.51
7.3.160.0060.00916.09
7.3.130.0070.01014.50
7.3.120.0090.00914.91
7.3.110.0040.01214.39
7.3.100.0000.01614.45
7.3.90.0040.01114.55
7.3.80.0030.01314.75
7.3.70.0100.00314.64
7.3.60.0040.00414.66
7.3.50.0030.00814.92
7.3.40.0030.00914.77
7.3.30.0040.00714.44
7.3.20.0110.00416.69
7.3.10.0030.01016.55
7.3.00.0100.00416.33
7.2.330.0130.00716.54
7.2.320.0000.01916.45
7.2.310.0110.00616.26
7.2.300.0110.00716.67
7.2.290.0040.01416.41
7.2.260.0060.01314.97
7.2.250.0070.01115.19
7.2.240.0100.00715.03
7.2.230.0040.01114.71
7.2.220.0070.00715.02
7.2.210.0100.00315.13
7.2.200.0060.00615.04
7.2.190.0060.00615.09
7.2.180.0070.00715.06
7.2.170.0090.00915.02
7.2.160.0090.00615.05
7.2.150.0040.01116.77
7.2.140.0120.00016.84
7.2.130.0120.00316.84
7.2.120.0040.01116.82
7.2.110.0040.01216.95
7.2.100.0000.00916.78
7.2.90.0050.00516.80
7.2.80.0040.00716.62
7.2.70.0070.00316.99
7.2.60.0070.00716.99
7.2.50.0030.00716.90
7.2.40.0090.00616.89
7.2.30.0030.01016.84
7.2.20.0040.01116.84
7.2.10.0060.00916.59
7.2.00.0060.00617.99
7.1.330.0130.00315.26
7.1.320.0100.00315.41
7.1.310.0030.01415.49
7.1.300.0040.00415.66
7.1.290.0030.00915.44
7.1.280.0000.01415.49
7.1.270.0130.00015.41
7.1.260.0070.00715.68
7.1.250.0080.00415.74
7.1.240.0090.00615.80
7.1.230.0040.00415.59
7.1.220.0000.01115.79
7.1.210.0030.00915.75
7.1.200.0060.00615.72
7.1.190.0070.00315.67
7.1.180.0000.01015.38
7.1.170.0040.01115.61
7.1.160.0060.01015.37
7.1.150.0070.00715.62
7.1.140.0080.00415.62
7.1.130.0070.00315.55
7.1.120.0070.01015.35
7.1.110.0040.00415.45
7.1.100.0020.01216.87
7.1.90.0030.00915.71
7.1.80.0030.00915.30
7.1.70.0030.00816.23
7.1.60.0050.01317.65
7.1.50.0050.01316.14
7.1.40.0030.01015.08
7.1.30.0070.01015.53
7.1.20.0060.00615.73
7.1.10.0120.00015.79
7.1.00.0040.04218.88
7.0.330.0090.00015.21
7.0.320.0000.01215.13
7.0.310.0060.00915.07
7.0.300.0040.00815.32
7.0.290.0090.00615.26
7.0.280.0000.00815.32
7.0.270.0080.00415.09
7.0.260.0090.00015.09
7.0.250.0060.00315.42
7.0.240.0000.00815.38
7.0.230.0070.00315.16
7.0.220.0040.01215.28
7.0.210.0060.00515.41
7.0.200.0050.00515.88
7.0.190.0040.00715.27
7.0.180.0070.00715.42
7.0.170.0000.01415.39
7.0.160.0090.00015.35
7.0.150.0040.00415.12
7.0.140.0060.00915.50
7.0.130.0030.00615.47
7.0.120.0040.00715.11
7.0.110.0070.00415.00
7.0.100.0030.00515.39
7.0.90.0090.00015.39
7.0.80.0030.00615.17
7.0.70.0070.00715.30
7.0.60.0050.02517.66
7.0.50.0000.03516.52
7.0.40.0090.03716.75
7.0.30.0130.02816.76
7.0.20.0190.04516.86
7.0.10.0100.02716.93
7.0.00.0110.03716.80
5.6.400.0040.01114.58
5.6.390.0030.01214.10
5.6.380.0070.00714.29
5.6.370.0130.00014.23
5.6.360.0000.01314.29
5.6.350.0030.01214.09
5.6.340.0050.00514.20
5.6.330.0050.00514.56
5.6.320.0040.00814.36
5.6.310.0040.01114.50
5.6.300.0070.00714.37
5.6.290.0110.00314.25
5.6.280.0120.03017.63
5.6.270.0030.00714.22
5.6.260.0070.00714.65
5.6.250.0030.01014.22
5.6.240.0070.00714.25
5.6.230.0110.00314.36
5.6.220.0130.00314.25
5.6.210.0060.04117.55
5.6.200.0050.04516.38
5.6.190.0070.04717.55
5.6.180.0140.04417.23
5.6.170.0170.02817.48
5.6.160.0070.02217.24
5.6.150.0030.03616.09
5.6.140.0080.04116.26
5.6.130.0020.04916.21
5.6.120.0050.04117.58
5.6.110.0050.04617.63
5.6.100.0050.04517.60
5.6.90.0070.04517.65
5.6.80.0050.03217.31
5.6.70.0120.00014.33
5.6.60.0080.00414.28
5.6.50.0000.01214.29
5.6.40.0070.00714.02
5.6.30.0040.00714.07
5.6.20.0040.00714.18
5.6.10.0000.01114.29
5.6.00.0070.00714.35
5.5.380.0030.01014.23
5.5.370.0040.01114.39
5.5.360.0060.00614.13
5.5.350.2010.02517.25
5.5.340.0030.05015.97
5.5.330.0020.03317.42
5.5.320.0260.02617.14
5.5.310.0150.03417.27
5.5.300.0050.03016.04
5.5.290.0070.02616.18
5.5.280.0050.02817.65
5.5.270.0050.02917.53
5.5.260.0050.04517.60
5.5.250.0140.03917.47
5.5.240.0150.03217.20
5.5.230.0030.00714.16
5.5.220.0040.00714.21
5.5.210.0060.00613.93
5.5.200.0070.01114.11
5.5.190.0030.00614.27
5.5.180.0040.00814.33
5.5.170.0000.00914.24
5.5.160.0040.00714.23
5.5.150.0030.01014.04
5.5.140.0060.00313.96
5.5.130.0040.01114.14
5.5.120.0040.01114.15
5.5.110.0100.00314.32
5.5.100.0100.00014.30
5.5.90.0030.00714.09
5.5.80.0030.00613.96
5.5.70.0000.01314.14
5.5.60.0030.00913.98
5.5.50.0090.00314.00
5.5.40.0040.00714.30
5.5.30.0060.00314.16
5.5.20.0030.01013.89
5.5.10.0030.00514.26
5.5.00.0000.00813.92

preferences:
51.24 ms | 401 KiB | 5 Q