3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class Vehicle { public function move (...$args) { var_dump($args); //echo "I'm moving from ", $this->pointA, " to ", $this->pointB; } } class Car extends Vehicle { public function move (...$args) { var_dump($args); return $this->drive($args); } private function drive (...$args) { var_dump($args); //echo "I'm driving from ", $this->pointA, " to ", $this->pointB; } } $bmw = new Car(); $bmw->drive("home", "work");

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.00018.52
8.3.50.0120.00317.86
8.3.40.0040.01118.84
8.3.30.0130.00318.85
8.3.20.0000.00721.91
8.3.10.0080.00021.73
8.3.00.0040.00419.68
8.2.180.0120.00318.33
8.2.170.0090.00622.96
8.2.160.0100.00320.38
8.2.150.0090.00624.18
8.2.140.0080.00024.66
8.2.130.0070.00017.97
8.2.120.0000.00726.35
8.2.110.0170.00021.00
8.2.100.0080.00418.09
8.2.90.0060.00619.17
8.2.80.0050.00317.97
8.2.70.0040.00417.80
8.2.60.0050.00319.66
8.2.50.0000.00818.10
8.2.40.0030.00522.14
8.2.30.0000.00819.14
8.2.20.0000.00718.07
8.2.10.0040.00418.10
8.2.00.0040.00418.00
8.1.280.0060.00925.92
8.1.270.0080.00022.02
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0060.00322.53
8.1.230.0070.00420.27
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0000.00817.23
8.1.190.0000.00817.23
8.1.180.0000.00718.10
8.1.170.0050.00318.36
8.1.160.0050.00318.73
8.1.150.0040.00420.26
8.1.140.0000.00717.56
8.1.130.0030.00318.98
8.1.120.0000.00717.45
8.1.110.0000.00717.29
8.1.100.0000.00817.29
8.1.90.0000.00717.37
8.1.80.0000.00817.38
8.1.70.0050.00217.43
8.1.60.0070.00017.41
8.1.50.0040.00417.53
8.1.40.0000.00717.51
8.1.30.0040.00717.60
8.1.20.0040.00417.55
8.1.10.0000.00717.49
8.1.00.0090.00417.52
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00818.41
8.0.270.0070.00017.21
8.0.260.0030.00316.76
8.0.250.0030.00316.82
8.0.240.0040.00416.93
8.0.230.0040.00416.88
8.0.220.0000.00816.92
8.0.210.0040.00416.89
8.0.200.0000.00816.92
8.0.190.0070.00216.93
8.0.180.0070.00016.80
8.0.170.0000.00816.82
8.0.160.0040.00416.85
8.0.150.0040.00416.79
8.0.140.0020.00516.73
8.0.130.0030.00313.31
8.0.120.0060.00316.86
8.0.110.0060.00316.95
8.0.100.0000.00716.94
8.0.90.0070.00016.87
8.0.80.0040.01116.82
8.0.70.0030.00516.89
8.0.60.0060.00316.90
8.0.50.0030.00516.70
8.0.30.0110.00716.98
8.0.20.0090.01217.40
8.0.10.0040.00416.82
8.0.00.0120.00516.65
7.4.330.0000.00415.55
7.4.320.0060.00016.45
7.4.300.0000.00716.36
7.4.290.0040.00416.52
7.4.280.0040.00416.59
7.4.270.0000.00716.46
7.4.260.0070.00016.49
7.4.250.0080.00016.48
7.4.240.0000.00816.64
7.4.230.0040.00416.54
7.4.220.0040.00416.64
7.4.210.0170.00316.70
7.4.200.0000.00716.54
7.4.160.0100.00616.52
7.4.150.0070.01017.40
7.4.140.0110.00817.86
7.4.130.0140.00316.58
7.4.120.0100.00916.43
7.4.110.0070.01016.67
7.4.100.0040.01216.73
7.4.90.0130.01016.47
7.4.80.0150.00919.39
7.4.70.0080.01416.45
7.4.60.0030.01316.34
7.4.50.0070.00716.41
7.4.40.0090.00616.59
7.4.00.0040.01115.00
7.3.330.0000.00513.31
7.3.320.0060.00013.26
7.3.310.0070.00016.26
7.3.300.0040.00416.25
7.3.290.0110.00816.31
7.3.280.0070.00816.30
7.3.270.0170.00017.40
7.3.260.0090.00916.29
7.3.240.0070.01016.40
7.3.230.0120.00416.46
7.3.210.0100.00716.35
7.3.200.0080.00816.43
7.3.190.0130.01016.30
7.3.180.0060.01016.28
7.3.170.0100.00716.34
7.3.160.0060.00916.25
7.2.330.0150.00316.63
7.2.320.0060.01216.63
7.2.310.0110.00716.62
7.2.300.0110.00516.55
7.2.290.0070.01016.62
7.2.60.0030.00916.82
7.2.20.0080.01519.89
7.2.10.0060.01219.74
7.2.00.0090.01319.70
7.1.200.0030.01015.70
7.1.140.0060.01518.51
7.1.130.0050.01318.36
7.1.120.0060.01118.10
7.1.110.0070.01017.91
7.1.100.0080.01318.01
7.1.90.0100.01117.86
7.1.80.0090.00817.98
7.1.70.0090.01016.94
7.1.60.0290.01734.96
7.1.50.0330.01434.76
7.1.40.0320.01934.17
7.1.30.0360.01934.11
7.1.20.0370.01734.48
7.1.10.0060.01516.49
7.1.00.0060.01116.57

preferences:
32.03 ms | 400 KiB | 5 Q