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 { protected function goToSchool() { echo 'I go to school'; } public function whatIsMyName() { echo $this->name; } } $son = new Son('Nick', 'Long'); $son->whatIsMyName(); $son->drive();

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.0070.00716.75
8.3.50.0070.01517.94
8.3.40.0070.00718.64
8.3.30.0130.00318.67
8.3.20.0040.00420.29
8.3.10.0040.00423.64
8.3.00.0080.00019.26
8.2.180.0110.00416.50
8.2.170.0140.00022.96
8.2.160.0120.00320.55
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0000.00817.63
8.2.120.0020.00526.35
8.2.110.0050.00522.15
8.2.100.0070.00417.84
8.2.90.0040.00417.50
8.2.80.0040.00418.97
8.2.70.0020.00519.46
8.2.60.0080.00017.63
8.2.50.0040.00417.63
8.2.40.0030.00517.75
8.2.30.0050.00217.81
8.2.20.0060.00317.65
8.2.10.0000.00718.02
8.2.00.0040.00417.86
8.1.280.0100.01025.92
8.1.270.0060.00323.97
8.1.260.0080.00028.09
8.1.250.0000.00728.09
8.1.240.0070.00320.83
8.1.230.0080.00317.70
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0030.00717.23
8.1.190.0080.00017.35
8.1.180.0040.00418.10
8.1.170.0000.00817.62
8.1.160.0000.00718.82
8.1.150.0000.00718.69
8.1.140.0090.00019.55
8.1.130.0050.00317.69
8.1.120.0000.00717.29
8.1.110.0040.00417.28
8.1.100.0050.00217.45
8.1.90.0080.00017.43
8.1.80.0000.01017.42
8.1.70.0040.00417.32
8.1.60.0000.00817.56
8.1.50.0040.00417.34
8.1.40.0090.00017.41
8.1.30.0000.00817.69
8.1.20.0040.00417.56
8.1.10.0060.00317.52
8.1.00.0000.00817.43
8.0.300.0080.00018.84
8.0.290.0080.00016.88
8.0.280.0050.00218.05
8.0.270.0070.00018.05
8.0.260.0060.00017.32
8.0.250.0030.00316.89
8.0.240.0040.00416.99
8.0.230.0000.01016.96
8.0.220.0040.00416.86
8.0.210.0040.00416.90
8.0.200.0040.00416.99
8.0.190.0090.00016.93
8.0.180.0000.00716.90
8.0.170.0050.00316.94
8.0.160.0040.00416.94
8.0.150.0080.00016.88
8.0.140.0050.00316.88
8.0.130.0060.00313.27
8.0.120.0000.00816.72
8.0.110.0040.00416.89
8.0.100.0000.00716.93
8.0.90.0040.00416.95
8.0.80.0150.00616.88
8.0.70.0080.00016.75
8.0.60.0040.00416.88
8.0.50.0000.00716.71
8.0.30.0100.00716.99
8.0.20.0080.01017.40
8.0.10.0000.00816.89
8.0.00.0110.00716.81
7.4.330.0000.00516.79
7.4.320.0060.00016.44
7.4.300.0060.00316.51
7.4.290.0070.00016.50
7.4.280.0080.00016.48
7.4.270.0040.00416.46
7.4.260.0070.00016.58
7.4.250.0070.00016.45
7.4.240.0010.00616.49
7.4.230.0000.00716.70
7.4.220.0120.00216.61
7.4.210.0080.00516.45
7.4.200.0030.00316.59
7.4.160.0120.00416.59
7.4.150.0130.00417.40
7.4.140.0110.00817.86
7.4.130.0080.01016.45
7.4.120.0110.00716.45
7.4.110.0110.00716.55
7.4.100.0070.01116.48
7.4.90.0170.00716.54
7.4.80.0070.01419.39
7.4.70.0030.01316.49
7.4.60.0120.00316.41
7.4.50.0130.00316.14
7.4.40.0120.00916.26
7.4.30.0030.01416.61
7.4.00.0110.00714.89
7.3.330.0050.00013.34
7.3.320.0040.00413.29
7.3.310.0000.00716.38
7.3.300.0000.00616.32
7.3.290.0030.01216.37
7.3.280.0090.00916.33
7.3.270.0090.00917.40
7.3.260.0140.00416.63
7.3.250.0110.01016.37
7.3.240.0100.00916.42
7.3.230.0100.00716.39
7.3.210.0090.00916.44
7.3.200.0120.00316.38
7.3.190.0070.01716.50
7.3.180.0080.00816.34
7.3.170.0030.01316.47
7.3.160.0120.00916.34
7.2.330.0060.01216.25
7.2.320.0100.00916.67
7.2.310.0140.00716.58
7.2.300.0070.01416.70
7.2.290.0090.00916.44
7.2.60.0070.00716.81
7.2.00.0040.00819.53
7.1.200.0070.00015.55
7.1.100.0000.00817.84
7.1.70.0040.00416.89
7.1.60.0100.01319.12
7.1.50.0080.00316.86
7.1.00.0000.08022.35
7.0.200.0060.00616.73
7.0.60.0130.07719.79
7.0.50.0130.07717.88
7.0.40.0000.04720.21
7.0.30.0430.07320.21
7.0.20.0270.06320.06
7.0.10.0030.05320.10
7.0.00.0070.08720.23
5.6.280.0030.03021.05
5.6.210.0130.08020.54
5.6.200.0030.05018.29
5.6.190.0130.08320.34
5.6.180.0300.06020.64
5.6.170.0300.07720.56
5.6.160.0030.09320.63
5.6.150.0130.06718.17
5.6.140.0070.06718.16
5.6.130.0030.08718.11
5.6.120.0030.05321.02
5.6.110.0100.07721.05
5.6.100.0070.07321.13
5.6.90.0000.04321.11
5.6.80.0170.06320.39
5.5.350.4100.04320.39
5.5.340.0000.04317.98
5.5.330.0030.04320.41
5.5.320.0100.04720.37
5.5.310.0330.06020.25
5.5.300.0100.08017.95
5.5.290.0070.06317.96
5.5.280.0100.07320.63
5.5.270.0100.07720.77
5.5.260.0070.08020.97
5.5.250.0100.05320.67
5.5.240.0230.06720.16

preferences:
53.3 ms | 400 KiB | 5 Q