3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Car { protected $speed = 0; protected $people = 0; public function onboardPerson() { $this->people++; } public function accelerate() { $this->speed++; } } class Taxi extends Car { protected $fare; public function setFare($fare) { $this->fare = $fare; } } $taxi = new Taxi(); // Replace instances of type Car (T) with subtype Taxi (S) $taxi->onboardPerson(); $taxi->accelerate(); var_dump($taxi);

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.0090.00918.55
8.3.50.0170.00321.15
8.3.40.0090.00618.54
8.3.30.0110.00318.71
8.3.20.0080.00018.77
8.3.10.0040.00421.98
8.3.00.0040.00420.84
8.2.180.0140.00418.29
8.2.170.0100.00722.96
8.2.160.0030.01322.20
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00819.82
8.2.120.0080.00026.35
8.2.110.0030.00622.30
8.2.100.0110.00018.16
8.2.90.0080.00019.89
8.2.80.0040.00417.97
8.2.70.0000.00817.80
8.2.60.0000.00818.22
8.2.50.0030.00518.16
8.2.40.0050.00320.50
8.2.30.0000.00719.19
8.2.20.0080.00017.93
8.2.10.0060.00317.91
8.2.00.0040.00417.63
8.1.280.0090.01225.92
8.1.270.0050.00322.02
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0090.00022.18
8.1.230.0040.00721.00
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0110.00017.23
8.1.190.0040.00417.23
8.1.180.0080.00018.10
8.1.170.0000.00718.84
8.1.160.0040.00418.77
8.1.150.0050.00220.24
8.1.140.0000.00719.52
8.1.130.0050.00317.76
8.1.120.0040.00417.42
8.1.110.0060.00317.26
8.1.100.0000.00817.45
8.1.90.0080.00017.34
8.1.80.0000.00717.39
8.1.70.0070.00017.31
8.1.60.0080.00017.63
8.1.50.0040.00417.53
8.1.40.0060.00317.58
8.1.30.0080.00017.64
8.1.20.0040.00417.60
8.1.10.0040.00417.47
8.1.00.0040.00417.43
8.0.300.0020.00519.65
8.0.290.0040.00416.63
8.0.280.0070.00018.29
8.0.270.0120.00016.75
8.0.260.0000.00817.11
8.0.250.0030.00316.92
8.0.240.0030.00316.91
8.0.230.0000.00616.91
8.0.220.0050.00216.67
8.0.210.0030.00316.85
8.0.200.0060.00016.79
8.0.190.0070.00016.77
8.0.180.0040.00416.83
8.0.170.0040.00416.85
8.0.160.0050.00316.87
8.0.150.0000.00716.73
8.0.140.0000.00716.75
8.0.130.0000.00513.28
8.0.120.0080.00016.82
8.0.110.0000.00716.70
8.0.100.0040.00416.69
8.0.90.0030.00516.84
8.0.80.0100.00716.77
8.0.70.0000.00716.86
8.0.60.0000.00716.80
8.0.50.0040.00416.71
8.0.30.0120.00517.09
8.0.20.0200.01217.40
8.0.10.0030.00517.04
8.0.00.0170.00916.63
7.4.330.0000.00615.55
7.4.320.0060.00016.58
7.4.300.0000.00616.55
7.4.290.0040.00416.59
7.4.280.0050.00216.50
7.4.270.0000.00616.51
7.4.260.0000.00716.47
7.4.250.0030.00516.42
7.4.240.0080.00016.51
7.4.230.0000.00716.61
7.4.220.0150.00416.45
7.4.210.0110.00416.55
7.4.200.0070.00016.57
7.4.160.0100.00616.50
7.4.150.0080.00917.40
7.4.140.0090.00917.86
7.4.130.0110.00616.40
7.4.120.0110.00816.50
7.4.110.0240.00016.34
7.4.100.0120.00616.42
7.4.90.0060.01316.41
7.4.80.0130.00319.39
7.4.70.0070.01016.37
7.4.60.0040.01116.43
7.4.50.0030.00616.54
7.4.40.0090.00616.49
7.4.30.0110.01116.42
7.4.00.0090.00615.09
7.3.330.0050.00013.09
7.3.320.0000.00513.07
7.3.310.0040.00416.10
7.3.300.0060.00016.09
7.3.290.0030.00316.12
7.3.280.0100.00816.22
7.3.270.0100.01417.40
7.3.260.0060.01316.32
7.3.250.0090.00916.29
7.3.240.0140.00516.33
7.3.230.0060.01316.39
7.3.210.0060.01316.50
7.3.200.0140.00316.13
7.3.190.0080.00916.38
7.3.180.0110.00516.30
7.3.170.0040.01616.26
7.3.160.0060.01316.25
7.3.120.0040.01814.60
7.3.110.0040.01114.57
7.3.100.0060.00614.65
7.3.90.0030.00914.92
7.3.80.0100.00614.60
7.3.70.0080.00614.88
7.3.60.0030.00614.83
7.3.50.0030.01014.78
7.3.40.0040.01114.78
7.3.30.0070.00314.73
7.3.20.0060.01316.63
7.3.10.0090.00916.36
7.3.00.0000.01416.36
7.2.330.0030.01416.25
7.2.320.0030.02016.35
7.2.310.0080.00816.57
7.2.300.0080.01216.44
7.2.290.0070.01016.38
7.2.250.0100.00714.65
7.2.240.0060.01315.06
7.2.230.0080.00415.20
7.2.220.0090.00614.92
7.2.210.0070.00715.11
7.2.200.0040.01115.05
7.2.190.0130.00314.72
7.2.180.0070.00414.93
7.2.170.0000.01514.86
7.2.60.0080.00616.96
7.1.330.0030.01415.89
7.1.320.0060.00915.51
7.1.310.0030.01115.51
7.1.300.0110.00415.79
7.1.290.0060.00615.76
7.1.280.0090.00615.80
7.1.270.0000.01515.39
7.1.260.0040.00915.79
7.1.200.0000.01515.57
7.1.70.0030.00717.02
7.1.60.0000.01217.22
7.1.50.0000.01117.07
7.1.40.0080.00416.58
7.1.30.0000.01116.68
7.1.20.0030.00916.83
7.1.10.0000.00716.73
7.1.00.0000.00916.60
7.0.200.0050.00316.66
7.0.190.0060.00316.57
7.0.180.0060.00616.19
7.0.170.0040.00416.29
7.0.160.0030.00616.31
7.0.150.0050.00316.09
7.0.140.0000.00816.27
7.0.130.0030.01316.23
7.0.120.0050.00516.56
7.0.110.0030.00716.42
7.0.100.0000.00816.24
7.0.90.0030.01016.28
7.0.80.0060.00316.50
7.0.70.0000.00916.57
7.0.60.0040.00716.21
7.0.50.0040.00816.26
7.0.40.0050.00215.09
7.0.30.0040.00415.09
7.0.20.0060.00315.09
7.0.10.0000.01515.09
7.0.00.0030.01215.09
5.6.300.0060.04720.82
5.6.290.0000.04620.81
5.6.280.0070.03720.99
5.6.270.0000.05520.87
5.6.260.0100.04220.79
5.6.250.0000.04520.97
5.6.240.0030.05320.90
5.6.230.0070.04720.80
5.6.220.0070.03620.85
5.6.210.0000.08820.80
5.6.200.0030.04020.79
5.6.190.0030.04320.83
5.6.180.0060.05521.01
5.6.170.0000.07721.03
5.6.160.0100.07720.96
5.6.150.0160.08521.02
5.6.140.0100.04920.84
5.6.130.0000.04421.03
5.6.120.0060.03820.93
5.6.110.0030.04220.98
5.6.100.0130.07320.85
5.6.90.0070.06620.94
5.6.80.0000.06020.44
5.6.70.0040.03920.37
5.6.60.0030.04020.31
5.6.50.0030.07620.22
5.6.40.0130.03620.35
5.6.30.0000.04520.21
5.6.20.0030.07220.17
5.6.10.0070.04820.41
5.6.00.0070.03720.08

preferences:
55.56 ms | 401 KiB | 5 Q