3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ParentClass { protected function doSomething() { echo "done.\n"; } } class ChildClass extends ParentClass { protected 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.0110.00716.50
8.3.50.0100.01021.07
8.3.40.0070.01018.63
8.3.30.0030.01518.70
8.3.20.0040.00420.38
8.3.10.0040.00423.65
8.3.00.0080.00023.65
8.2.180.0120.00616.88
8.2.170.0080.00822.96
8.2.160.0080.00820.43
8.2.150.0050.00324.18
8.2.140.0090.00024.66
8.2.130.0050.00320.95
8.2.120.0040.00426.35
8.2.110.0070.00322.27
8.2.100.0000.01217.80
8.2.90.0000.00919.13
8.2.80.0000.00817.97
8.2.70.0000.01017.63
8.2.60.0080.00017.79
8.2.50.0030.00518.07
8.2.40.0090.00320.50
8.2.30.0000.00720.64
8.2.20.0040.00417.68
8.2.10.0000.00818.06
8.2.00.0060.00317.98
8.1.280.0170.00025.92
8.1.270.0050.00322.05
8.1.260.0040.00428.09
8.1.250.0070.00728.09
8.1.240.0030.00622.50
8.1.230.0080.00319.16
8.1.220.0080.00017.74
8.1.210.0030.00618.77
8.1.200.0060.00317.36
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0040.00418.46
8.1.160.0050.00320.70
8.1.150.0070.00018.77
8.1.140.0040.00419.52
8.1.130.0030.00317.55
8.1.120.0000.00717.31
8.1.110.0030.00717.30
8.1.100.0040.00417.29
8.1.90.0000.00717.39
8.1.80.0000.00817.38
8.1.70.0070.00017.34
8.1.60.0040.00417.55
8.1.50.0040.00417.53
8.1.40.0030.00517.49
8.1.30.0000.00917.52
8.1.20.0040.00417.51
8.1.10.0040.00417.45
8.1.00.0020.00517.42
8.0.300.0000.00718.77
8.0.290.0000.00716.63
8.0.280.0070.00018.29
8.0.270.0000.00717.15
8.0.260.0040.00417.11
8.0.250.0070.00016.86
8.0.240.0000.00716.94
8.0.230.0070.00416.91
8.0.220.0050.00216.89
8.0.210.0000.00716.75
8.0.200.0000.00617.02
8.0.190.0040.00416.98
8.0.180.0000.00716.84
8.0.170.0060.00316.81
8.0.160.0000.00716.82
8.0.150.0040.00416.75
8.0.140.0030.00516.83
8.0.130.0060.00313.34
8.0.120.0000.00816.75
8.0.110.0040.00416.80
8.0.100.0000.00716.92
8.0.90.0000.00816.77
8.0.80.0060.01116.94
8.0.70.0040.00416.76
8.0.60.0040.00416.80
8.0.50.0000.00716.87
8.0.30.0130.00516.93
8.0.20.0070.01317.40
8.0.10.0000.00717.08
8.0.00.0070.01116.74
7.4.330.0060.00016.84
7.4.320.0060.00016.46
7.4.300.0060.00016.53
7.4.290.0000.00716.55
7.4.280.0000.00916.41
7.4.270.0030.00316.61
7.4.260.0040.00416.50
7.4.250.0000.00716.49
7.4.240.0040.00316.55
7.4.230.0070.00016.70
7.4.220.0120.00616.54
7.4.210.0070.00716.42
7.4.200.0050.00316.35
7.4.160.0080.00816.64
7.4.150.0060.01117.40
7.4.140.0170.00517.86
7.4.130.0100.00916.56
7.4.120.0100.00716.52
7.4.110.0090.00916.56
7.4.100.0060.01016.52
7.4.90.0060.01216.45
7.4.80.0100.00619.39
7.4.70.0060.01516.46
7.4.60.0060.01316.30
7.4.50.0070.01116.31
7.4.40.0130.00316.55
7.4.30.0190.00316.54
7.4.00.0000.01214.90
7.3.330.0050.00013.23
7.3.320.0000.00513.29
7.3.310.0030.00316.20
7.3.300.0070.00016.16
7.3.290.0080.00916.31
7.3.280.0070.01016.29
7.3.270.0070.01017.40
7.3.260.0130.00316.31
7.3.250.0060.01116.31
7.3.240.0130.00816.51
7.3.230.0090.00916.39
7.3.210.0000.01516.46
7.3.200.0060.01216.43
7.3.190.0090.01216.30
7.3.180.0080.00816.33
7.3.170.0060.01016.27
7.3.160.0150.00016.19
7.2.330.0100.00716.54
7.2.320.0120.00616.54
7.2.310.0070.01016.65
7.2.300.0070.01016.69
7.2.290.0050.01116.63
7.2.60.0080.00216.79
7.2.00.0000.01019.09
7.1.200.0080.00615.55
7.1.100.0060.00917.80
7.1.70.0000.00917.04
7.1.60.0110.01419.52
7.1.50.0040.00716.82
7.1.00.0030.07722.32
7.0.200.0000.00916.64
7.0.60.0070.04719.88
7.0.50.0030.08317.84
7.0.40.0030.04320.11
7.0.30.0200.07720.06
7.0.20.0330.07320.17
7.0.10.0070.09020.16
7.0.00.0070.09020.16
5.6.280.0030.03320.87
5.6.210.0100.08320.52
5.6.200.0000.08718.24
5.6.190.0070.07720.61
5.6.180.0130.04320.56
5.6.170.0270.04320.47
5.6.160.0170.07720.45
5.6.150.0100.07718.29
5.6.140.0030.08718.18
5.6.130.0030.04318.14
5.6.120.0100.08321.00
5.6.110.0030.07720.89
5.6.100.0070.08721.09
5.6.90.0230.05020.97
5.6.80.0100.07720.48
5.5.350.3930.03020.50
5.5.340.0030.05017.98
5.5.330.0030.04020.25
5.5.320.0200.05020.25
5.5.310.0230.04020.35
5.5.300.0100.07717.98
5.5.290.0030.06717.98
5.5.280.0100.08320.85
5.5.270.0000.09020.86
5.5.260.0100.07320.79
5.5.250.0100.07720.64
5.5.240.0100.08720.19

preferences:
67.09 ms | 401 KiB | 5 Q