3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Dad { protected $name; protected $surname; public function __consruct(string $name, string $surname) { $this->name = $name; $this->surname = $surname; } public function run() { echo 'I run fast'; } protected function drive() { echo 'I drive a car'; } } class Son extends Dad { public function goToSchool() { echo 'I go to school'; } public function whatIsMyName() { echo $this->name; } } $son = new Son('Nick', 'Long'); $son->drive(); //produce an error

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.0040.01116.73
8.3.50.0290.01322.04
8.3.40.0070.00718.98
8.3.30.0040.01118.85
8.3.20.0070.00020.31
8.3.10.0040.00423.66
8.3.00.0050.00319.25
8.2.180.0060.00916.75
8.2.170.0110.00422.96
8.2.160.0060.00820.52
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00317.25
8.2.120.0040.00426.35
8.2.110.0090.00020.52
8.2.100.0040.00717.66
8.2.90.0000.00819.07
8.2.80.0040.00417.97
8.2.70.0000.00917.50
8.2.60.0000.00717.80
8.2.50.0030.00618.07
8.2.40.0000.00919.31
8.2.30.0000.00720.68
8.2.20.0050.00517.67
8.2.10.0000.00817.93
8.2.00.0070.00017.94
8.1.280.0090.00925.92
8.1.270.0000.00923.91
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0060.00621.99
8.1.230.0080.00321.03
8.1.220.0080.00417.74
8.1.210.0080.00518.77
8.1.200.0060.00317.35
8.1.190.0130.00017.13
8.1.180.0080.00018.10
8.1.170.0000.00818.70
8.1.160.0040.00421.96
8.1.150.0000.00818.85
8.1.140.0040.00419.58
8.1.130.0070.00017.63
8.1.120.0040.00317.41
8.1.110.0020.00517.39
8.1.100.0000.00817.34
8.1.90.0040.00417.40
8.1.80.0050.00317.39
8.1.70.0040.00417.25
8.1.60.0040.00417.46
8.1.50.0030.00617.49
8.1.40.0070.00317.59
8.1.30.0040.00417.69
8.1.20.0000.00717.57
8.1.10.0040.00417.65
8.1.00.0040.00417.41
8.0.300.0000.00718.77
8.0.290.0030.00516.63
8.0.280.0000.00718.39
8.0.270.0030.00317.27
8.0.260.0000.00617.10
8.0.250.0030.00316.81
8.0.240.0000.00716.96
8.0.230.0030.00616.84
8.0.220.0050.00316.80
8.0.210.0080.00016.85
8.0.200.0030.00316.90
8.0.190.0000.00816.95
8.0.180.0050.00216.94
8.0.170.0000.00816.89
8.0.160.0000.00716.86
8.0.150.0040.00416.95
8.0.140.0040.00416.87
8.0.130.0030.00313.41
8.0.120.0000.00816.70
8.0.110.0070.00016.79
8.0.100.0060.00316.75
8.0.90.0000.00716.93
8.0.80.0120.00316.90
8.0.70.0040.00416.89
8.0.60.0040.00416.90
8.0.50.0000.00816.96
8.0.30.0080.01017.17
8.0.20.0110.00817.40
8.0.10.0030.00516.86
8.0.00.0060.01116.71
7.4.330.0000.00516.79
7.4.320.0030.00316.52
7.4.300.0080.00016.62
7.4.290.0070.00016.51
7.4.280.0070.00016.46
7.4.270.0000.00716.43
7.4.260.0070.00016.50
7.4.250.0040.00416.57
7.4.240.0020.00516.49
7.4.230.0000.00616.45
7.4.220.0050.01216.61
7.4.210.0040.01016.71
7.4.200.0030.00316.59
7.4.160.0070.00716.55
7.4.150.0040.01317.40
7.4.140.0130.01017.86
7.4.130.0130.00516.51
7.4.120.0060.01116.56
7.4.110.0120.00616.63
7.4.100.0130.00316.50
7.4.90.0070.01016.52
7.4.80.0090.00919.39
7.4.70.0130.00316.43
7.4.60.0080.00916.56
7.4.50.0090.00616.25
7.4.40.0080.00816.56
7.4.30.0060.01116.62
7.4.00.0030.01414.82
7.3.330.0060.00013.16
7.3.320.0070.00013.16
7.3.310.0030.00616.33
7.3.300.0030.00316.34
7.3.290.0110.00616.26
7.3.280.0050.01116.31
7.3.270.0060.01217.40
7.3.260.0070.01016.22
7.3.250.0080.01016.34
7.3.240.0090.00916.34
7.3.230.0000.01916.39
7.3.210.0130.00316.48
7.3.200.0100.00716.38
7.3.190.0130.00316.30
7.3.180.0070.01016.31
7.3.170.0060.01216.27
7.3.160.0070.01416.24
7.2.330.0070.01016.43
7.2.320.0200.00016.39
7.2.310.0130.01016.61
7.2.300.0130.00716.67
7.2.290.0100.00716.68
7.2.60.0100.00316.66
7.2.00.0030.01019.46
7.1.200.0060.00915.58
7.1.100.0060.00618.23
7.1.70.0040.00416.99
7.1.60.0090.01519.12
7.1.50.0070.01316.90
7.1.00.0000.08022.30
7.0.200.0000.00816.76
7.0.60.0070.04019.96
7.0.50.0000.06017.89
7.0.40.0030.09020.09
7.0.30.0330.05720.10
7.0.20.0330.07320.10
7.0.10.0030.09020.15
7.0.00.0070.08320.29
5.6.280.0030.05721.10
5.6.210.0030.04720.57
5.6.200.0070.08718.19
5.6.190.0030.05020.52
5.6.180.0470.07720.68
5.6.170.0270.06320.48
5.6.160.0070.08720.48
5.6.150.0030.05018.27
5.6.140.0070.07018.19
5.6.130.0100.05018.21
5.6.120.0100.08021.00
5.6.110.0030.04720.98
5.6.100.0100.06321.11
5.6.90.0070.03721.06
5.6.80.0130.08320.29
5.5.350.2430.03320.50
5.5.340.0030.08717.98
5.5.330.0070.05020.35
5.5.320.0000.09320.34
5.5.310.0270.04320.30
5.5.300.0130.07317.96
5.5.290.0000.04717.92
5.5.280.0070.08020.98
5.5.270.0130.07720.88
5.5.260.0070.08720.77
5.5.250.0070.08720.70
5.5.240.0230.07320.08

preferences:
50.63 ms | 401 KiB | 5 Q