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->move("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.0100.00718.18
8.3.50.0030.01218.25
8.3.40.0150.00018.73
8.3.30.0130.00618.54
8.3.20.0040.00421.79
8.3.10.0040.00421.80
8.3.00.0040.00419.44
8.2.180.0180.00418.53
8.2.170.0090.00622.96
8.2.160.0110.00420.39
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00418.03
8.2.120.0040.00426.35
8.2.110.0040.01317.97
8.2.100.0120.00417.78
8.2.90.0080.00017.75
8.2.80.0040.00418.61
8.2.70.0000.00817.91
8.2.60.0060.00319.52
8.2.50.0050.00318.10
8.2.40.0030.00520.59
8.2.30.0080.00019.24
8.2.20.0070.00018.00
8.2.10.0050.00218.05
8.2.00.0040.00418.05
8.1.280.0170.00325.92
8.1.270.0080.00022.19
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0040.00423.84
8.1.230.0120.00021.04
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0030.00717.35
8.1.190.0000.00817.10
8.1.180.0050.00718.10
8.1.170.0030.00618.50
8.1.160.0070.00018.84
8.1.150.0000.00720.17
8.1.140.0040.00417.51
8.1.130.0000.00718.99
8.1.120.0070.00017.38
8.1.110.0040.00417.37
8.1.100.0050.00317.39
8.1.90.0050.00317.37
8.1.80.0000.00717.32
8.1.70.0000.00717.29
8.1.60.0030.00617.48
8.1.50.0000.00817.40
8.1.40.0000.00717.48
8.1.30.0070.00417.73
8.1.20.0040.00417.64
8.1.10.0000.00717.58
8.1.00.0060.00317.34
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0030.00318.32
8.0.270.0040.00417.20
8.0.260.0030.00316.66
8.0.250.0000.00716.76
8.0.240.0030.00316.87
8.0.230.0030.00316.91
8.0.220.0030.00516.82
8.0.210.0030.00316.84
8.0.200.0060.00016.91
8.0.190.0040.00716.89
8.0.180.0030.00516.85
8.0.170.0050.00316.82
8.0.160.0040.00416.86
8.0.150.0030.00516.79
8.0.140.0040.00416.70
8.0.130.0000.00613.23
8.0.120.0000.00816.83
8.0.110.0000.00716.62
8.0.100.0050.00316.76
8.0.90.0000.00816.88
8.0.80.0060.00916.79
8.0.70.0000.00716.89
8.0.60.0040.00416.64
8.0.50.0000.00716.78
8.0.30.0110.00617.08
8.0.20.0110.01117.40
8.0.10.0030.00617.06
8.0.00.0060.01116.70
7.4.330.0050.00015.55
7.4.320.0020.00516.59
7.4.300.0030.00316.52
7.4.290.0070.00016.50
7.4.280.0040.00416.44
7.4.270.0040.00416.61
7.4.260.0050.00216.60
7.4.250.0080.00016.51
7.4.240.0040.00416.57
7.4.230.0070.00016.60
7.4.220.0050.00316.69
7.4.210.0090.00616.68
7.4.200.0040.00416.30
7.4.160.0090.01016.46
7.4.150.0070.01017.40
7.4.140.0090.00917.86
7.4.130.0150.00316.55
7.4.120.0120.00716.47
7.4.110.0110.00616.48
7.4.100.0100.00716.59
7.4.90.0070.01416.54
7.4.80.0160.00919.39
7.4.70.0140.00916.43
7.4.60.0040.01216.41
7.4.50.0090.00316.50
7.4.40.0090.00616.25
7.4.00.0040.01114.95
7.3.330.0000.00613.07
7.3.320.0030.00313.11
7.3.310.0040.00416.14
7.3.300.0030.00316.24
7.3.290.0120.00716.22
7.3.280.0030.01116.18
7.3.270.0060.01517.40
7.3.260.0100.01216.31
7.3.240.0100.00816.27
7.3.230.0090.00616.57
7.3.210.0100.00716.54
7.3.200.0030.01316.21
7.3.190.0090.00916.11
7.3.180.0130.00716.55
7.3.170.0060.00916.19
7.3.160.0060.01016.42
7.3.10.0040.01216.61
7.3.00.0040.01516.72
7.2.330.0150.00616.60
7.2.320.0090.01316.76
7.2.310.0000.01816.72
7.2.300.0100.00616.27
7.2.290.0090.00616.25
7.2.130.0160.00816.95
7.2.120.0140.00916.91
7.2.110.0100.01016.88
7.2.100.0040.00416.88
7.2.90.0100.00016.58
7.2.80.0050.00516.66
7.2.70.0000.01416.68
7.2.60.0030.00916.75
7.2.50.0030.00516.46
7.2.40.0060.00616.58
7.2.30.0040.01016.79
7.2.20.0090.00917.41
7.2.10.0050.01317.27
7.2.00.0150.01117.34
7.1.250.0160.00315.79
7.1.240.0170.00315.78
7.1.230.0050.01015.73
7.1.220.0140.00415.52
7.1.210.0070.00315.72
7.1.200.0050.01015.73
7.1.190.0040.00815.75
7.1.180.0030.01015.83
7.1.170.0000.00915.85
7.1.160.0070.00715.40
7.1.150.0040.01115.44
7.1.140.0080.00916.35
7.1.130.0090.01116.16
7.1.120.0060.01116.14
7.1.110.0080.00915.87
7.1.100.0080.00716.01
7.1.90.0080.00816.01
7.1.80.0090.00715.83
7.1.70.0100.00915.53
7.1.60.0190.01324.48
7.1.50.0170.01224.21
7.1.40.0170.01324.19
7.1.30.0180.01024.10
7.1.20.0190.01024.20
7.1.10.0090.00915.28
7.1.00.0070.01115.33
7.0.330.0110.00615.08
5.6.380.0100.00014.31

preferences:
54.49 ms | 400 KiB | 5 Q