3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class Foo{ protected function bar(){ echo 'Foo'; var_dump($this); return $this; } } class Bar extends Foo{ public function foo(){ echo 'Bar'; var_dump($this); // this should hold Bar instance and not Foo's $barClassInstance = $this->bar(); var_dump($barClassInstance); } } $bar = new Bar(); $bar->foo();

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.0150.00616.36
8.3.50.0130.00721.87
8.3.40.0070.01118.65
8.3.30.0040.01118.73
8.3.20.0070.00020.29
8.3.10.0000.00821.64
8.3.00.0060.00317.46
8.2.180.0110.00425.92
8.2.170.0110.00318.79
8.2.160.0130.00322.96
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0060.00326.16
8.2.120.0050.00317.50
8.2.110.0050.00522.07
8.2.100.0000.01117.91
8.2.90.0040.00417.75
8.2.80.0040.00418.61
8.2.70.0030.00517.47
8.2.60.0040.00417.63
8.2.50.0000.00818.10
8.2.40.0000.00819.27
8.2.30.0040.00420.62
8.2.20.0040.00417.49
8.2.10.0020.00517.99
8.2.00.0080.00017.97
8.1.280.0140.00325.92
8.1.270.0060.00323.94
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0060.00322.49
8.1.230.0030.00717.76
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0000.00817.23
8.1.190.0000.00817.00
8.1.180.0000.00818.72
8.1.170.0050.00219.02
8.1.160.0030.00621.96
8.1.150.0040.00418.80
8.1.140.0080.00019.54
8.1.130.0050.00217.64
8.1.120.0000.00717.43
8.1.110.0070.00017.41
8.1.100.0040.00417.29
8.1.90.0000.00717.33
8.1.80.0000.00817.28
8.1.70.0030.00317.37
8.1.60.0030.00717.62
8.1.50.0030.00517.50
8.1.40.0030.00617.41
8.1.30.0040.00417.51
8.1.20.0000.00817.56
8.1.10.0080.00017.45
8.1.00.0030.00517.49
8.0.300.0030.00621.64
8.0.290.0000.00716.75
8.0.280.0030.00318.38
8.0.270.0000.00717.26
8.0.260.0030.00317.23
8.0.250.0070.00016.90
8.0.240.0040.00416.83
8.0.230.0030.00316.77
8.0.220.0030.00316.81
8.0.210.0040.00416.78
8.0.200.0030.00316.77
8.0.190.0030.00516.78
8.0.180.0040.00416.88
8.0.170.0040.00416.84
8.0.160.0000.00716.85
8.0.150.0000.00716.87
8.0.140.0050.00316.81
8.0.130.0040.00413.33
8.0.120.0070.00016.75
8.0.110.0040.00416.66
8.0.100.0050.00216.69
8.0.90.0070.00016.70
8.0.80.0120.00316.85
8.0.70.0070.00016.80
8.0.60.0000.00716.87
8.0.50.0000.00716.73
8.0.30.0080.01217.06
8.0.20.0090.00917.40
8.0.10.0000.00716.80
8.0.00.0090.01016.76
7.4.330.0000.00615.08
7.4.320.0030.00316.29
7.4.300.0000.00616.60
7.4.290.0040.00416.60
7.4.280.0030.00516.62
7.4.270.0000.00716.60
7.4.260.0040.00416.57
7.4.250.0000.00816.48
7.4.240.0020.00616.56
7.4.230.0000.00716.58
7.4.220.0100.01016.45
7.4.210.0090.00516.61
7.4.200.0040.00416.60
7.4.160.0150.00016.43
7.4.150.0110.00617.40
7.4.140.0110.00917.86
7.4.130.0070.01116.46
7.4.120.0110.00916.61
7.4.110.0100.01316.56
7.4.100.0130.00616.61
7.4.90.0100.00616.56
7.4.80.0100.00719.39
7.4.70.0040.01516.48
7.4.60.0090.00616.64
7.4.50.0090.00016.45
7.4.40.0050.01016.45
7.4.30.0060.01716.70
7.4.00.0100.00715.05
7.3.330.0000.00513.01
7.3.320.0060.00013.06
7.3.310.0030.00316.28
7.3.300.0070.00016.21
7.3.290.0040.00416.31
7.3.280.0080.01016.25
7.3.270.0030.01517.40
7.3.260.0100.00716.43
7.3.250.0110.00716.38
7.3.240.0070.01216.43
7.3.230.0150.00316.52
7.3.210.0100.00716.16
7.3.200.0130.00716.22
7.3.190.0060.00916.43
7.3.180.0060.00916.31
7.3.170.0040.01616.52
7.3.160.0090.00816.19
7.3.10.0100.00316.33
7.3.00.0000.00816.45
7.2.330.0100.01016.49
7.2.320.0100.01016.76
7.2.310.0130.00616.60
7.2.300.0070.01016.83
7.2.290.0110.00616.46
7.2.130.0030.00816.38
7.2.120.0050.00516.57
7.2.110.0040.01216.36
7.2.100.0140.00716.50
7.2.90.0100.00016.69
7.2.80.0120.00416.54
7.2.70.0330.00016.53
7.2.60.0100.00416.63
7.2.50.0100.00716.88
7.2.40.0100.00716.58
7.2.30.0070.01016.56
7.2.20.0110.00716.67
7.2.10.0120.00916.80
7.2.00.0090.00617.95
7.1.250.0120.00015.63
7.1.200.0100.00315.76
7.1.100.0040.00818.12
7.1.70.0060.00317.15
7.1.60.0110.00719.43
7.1.50.0130.01016.97
7.1.00.0030.07322.51
7.0.200.0130.00314.53
7.0.60.0070.07020.00
7.0.50.0070.05317.98
7.0.40.0000.04720.04
7.0.30.0230.03320.25
7.0.20.0370.07320.20
7.0.10.0070.07020.09
7.0.00.0100.08720.19
5.6.280.0000.07021.10
5.6.210.0070.08320.47
5.6.200.0030.05018.25
5.6.190.0030.06320.39
5.6.180.3430.04720.61
5.6.170.0430.06720.39
5.6.160.0070.08720.51
5.6.150.0070.03718.15
5.6.140.0030.04718.18
5.6.130.0070.08718.20
5.6.120.0030.05021.13
5.6.110.0130.07721.01
5.6.100.0030.04321.13
5.6.90.0070.06321.01
5.6.80.0000.07720.41
5.5.350.0200.04020.41
5.5.340.0100.03318.09
5.5.330.0070.08720.44
5.5.320.0300.07020.19
5.5.310.0270.07720.23
5.5.300.0070.07017.98
5.5.290.0030.08318.07
5.5.280.0070.07020.96
5.5.270.0230.04720.80
5.5.260.0130.03320.79
5.5.250.0070.04020.80
5.5.240.0070.03020.04
5.4.450.0370.06319.59
5.4.440.0300.07319.34
5.4.430.0730.05719.58
5.4.420.0400.05019.57
5.4.410.0100.07719.41
5.4.400.0030.06319.02
5.4.390.0630.07019.11
5.4.380.0330.08019.23
5.4.370.0330.05719.14
5.4.360.0300.06019.10
5.4.350.0070.06019.25
5.4.340.0470.04719.07
5.4.320.0230.05319.13
5.4.310.0270.05319.06
5.4.300.0200.06719.26
5.4.290.0200.06719.27
5.4.280.0170.07319.27
5.4.270.0300.06319.01
5.4.260.0170.05718.81
5.4.250.0300.04718.94
5.4.240.0200.05019.21
5.4.230.0230.05718.84
5.4.220.0200.06019.27
5.4.210.0230.05719.00
5.4.200.0130.06019.09
5.4.190.0230.05019.21
5.4.180.0130.05018.83
5.4.170.0270.06019.06
5.4.160.0230.05319.25
5.4.150.0200.05719.23
5.4.140.0300.04316.78
5.4.130.0170.05316.58
5.4.120.0130.05716.46
5.4.110.0130.05316.66
5.4.100.0100.06016.63
5.4.90.0030.05716.24
5.4.80.0030.05716.48
5.4.70.0330.05716.28
5.4.60.0170.05316.23
5.4.50.0300.04316.60
5.4.40.0200.05316.38
5.4.30.0330.05016.16
5.4.20.0300.05316.57
5.4.10.0570.07716.18
5.4.00.0230.05715.95

preferences:
33.52 ms | 401 KiB | 5 Q