3v4l.org

run code in 300+ PHP versions simultaneously
<?php class GoodBigMamaHuman { protected $name = 'Payton'; public function __construct() { var_dump($this->name); } public function setName($name) { $this->name = $name; } public function getName() { return $this->age; } } class GoodLilBabyHuman extends GoodBigMamaHuman { public function __construct() { var_dump($this->name); } } $mama = new GoodBigMamaHuman(); $baby = new GoodLilBabyHuman();

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.70.0090.01216.58
8.3.60.0160.00018.43
8.3.50.0130.00921.15
8.3.40.0070.01418.71
8.3.30.0110.00318.42
8.3.20.0030.00520.16
8.3.10.0000.00823.51
8.3.00.0070.00019.56
8.2.180.0140.00725.92
8.2.170.0040.01122.96
8.2.160.0100.00720.47
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.01126.16
8.2.120.0040.00417.63
8.2.110.0060.00322.14
8.2.100.0090.00319.23
8.2.90.0020.00519.27
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0040.00418.04
8.2.50.0090.00018.07
8.2.40.0000.00919.17
8.2.30.0000.00718.00
8.2.20.0000.00817.67
8.2.10.0040.00417.86
8.2.00.0050.00317.86
8.1.280.0090.00625.92
8.1.270.0070.00720.38
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0040.00422.54
8.1.230.0060.00617.42
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0000.01017.13
8.1.190.0050.00317.10
8.1.180.0080.00018.10
8.1.170.0000.00818.52
8.1.160.0040.00422.00
8.1.150.0000.00718.86
8.1.140.0000.00817.38
8.1.130.0030.00317.61
8.1.120.0000.00717.35
8.1.110.0040.00417.31
8.1.100.0020.00517.44
8.1.90.0040.00417.46
8.1.80.0040.00417.39
8.1.70.0030.00317.39
8.1.60.0030.00517.59
8.1.50.0030.00517.58
8.1.40.0040.00417.46
8.1.30.0000.00817.54
8.1.20.0040.00417.54
8.1.10.0040.00417.44
8.1.00.0000.00717.42
8.0.300.0040.00418.78
8.0.290.0040.00416.75
8.0.280.0030.00318.31
8.0.270.0030.00317.06
8.0.260.0030.00617.12
8.0.250.0040.00316.93
8.0.240.0030.00316.73
8.0.230.0000.00716.89
8.0.220.0050.00316.82
8.0.210.0070.00016.73
8.0.200.0030.00316.94
8.0.190.0040.00416.87
8.0.180.0040.00416.84
8.0.170.0000.00916.84
8.0.160.0030.00316.73
8.0.150.0040.00416.82
8.0.140.0040.00416.79
8.0.130.0030.00313.25
8.0.120.0040.00416.67
8.0.110.0040.00416.66
8.0.100.0000.00716.78
8.0.90.0040.00416.84
8.0.80.0090.00616.85
8.0.70.0000.00716.84
8.0.60.0000.00716.89
8.0.50.0050.00316.68
8.0.30.0110.00717.00
8.0.20.0090.01117.40
8.0.10.0000.00717.05
8.0.00.0110.00816.64
7.4.330.0050.00015.08
7.4.320.0030.00316.56
7.4.300.0030.00316.58
7.4.290.0100.00016.55
7.4.280.0050.00316.38
7.4.270.0030.00316.61
7.4.260.0030.00516.53
7.4.250.0000.00816.57
7.4.240.0030.00516.61
7.4.230.0030.00316.60
7.4.220.0110.01116.54
7.4.210.0000.01416.54
7.4.200.0000.00716.30
7.4.160.0070.01016.46
7.4.150.0140.01117.40
7.4.140.0110.00917.86
7.4.130.0110.00616.45
7.4.120.0060.01316.44
7.4.110.0090.00916.37
7.4.100.0160.00616.60
7.4.90.0080.00816.28
7.4.80.0060.01219.39
7.4.70.0090.00916.59
7.4.60.0160.00316.50
7.4.50.0000.00416.64
7.4.40.0090.00916.48
7.4.30.0060.01216.59
7.4.00.0030.01314.81
7.3.330.0020.00213.24
7.3.320.0050.00013.24
7.3.310.0030.00316.25
7.3.300.0000.00716.17
7.3.290.0030.01416.22
7.3.280.0060.00816.19
7.3.270.0100.01017.40
7.3.260.0090.00916.42
7.3.250.0140.00316.22
7.3.240.0120.00716.42
7.3.230.0070.01316.40
7.3.210.0030.01316.19
7.3.200.0230.00016.30
7.3.190.0130.01016.25
7.3.180.0130.00316.18
7.3.170.0150.00916.46
7.3.160.0060.01216.37
7.2.330.0130.00316.48
7.2.320.0030.01316.57
7.2.310.0070.01416.36
7.2.300.0100.01316.69
7.2.290.0140.00316.71
7.2.00.0060.00619.05
7.1.200.0070.00715.46
7.1.100.0070.00318.02
7.1.70.0030.01317.18
7.1.60.0100.01019.12
7.1.50.0130.01316.60
7.1.00.0100.07022.30
7.0.200.0040.00416.40
7.0.60.0070.04319.94
7.0.50.0170.07017.95
7.0.40.0100.08720.24
7.0.30.0470.05720.23
7.0.20.0300.03720.24
7.0.10.0070.08020.22
7.0.00.0100.08320.11
5.6.280.0070.03321.02
5.6.210.0030.08320.77
5.6.200.0070.05018.16
5.6.190.0030.07320.47
5.6.180.0200.04720.63
5.6.170.0130.05020.58
5.6.160.0100.07720.62
5.6.150.0100.06318.19
5.6.140.0030.04718.27
5.6.130.0100.07018.18
5.6.120.0000.05720.97
5.6.110.0100.07721.02
5.6.100.0030.04020.89
5.6.90.0070.05721.02
5.6.80.0030.05320.37
5.6.70.0230.07720.51
5.5.350.0300.05020.45
5.5.340.0030.04017.97
5.5.330.0100.03720.43
5.5.320.0230.05720.29
5.5.310.0300.06720.14
5.5.300.0070.05718.04
5.5.290.0070.08017.95
5.5.280.0170.07320.77
5.5.270.0030.08320.84
5.5.260.0030.08720.96
5.5.250.0130.06720.69
5.5.240.0070.04720.19
5.4.450.0630.06019.16
5.4.440.0670.05319.16
5.4.430.0730.05019.44
5.4.420.0730.05719.46
5.4.410.0700.05319.34
5.4.400.0700.04719.25
5.4.390.0770.05019.30
5.4.380.0800.04719.28
5.4.370.0700.05719.26
5.4.360.0970.05319.30
5.4.350.0830.04719.05
5.4.340.0730.05318.86
5.4.320.0770.05319.08
5.4.310.0800.04719.15
5.4.300.0700.05019.02
5.4.290.0700.04719.25
5.4.280.0600.05719.22
5.4.270.0670.05319.14
5.4.260.0630.05019.25
5.4.250.0800.05719.25
5.4.240.0730.05019.27
5.4.230.0830.05019.10
5.4.220.0700.05019.25
5.4.210.0530.06019.26
5.4.200.0730.05718.83
5.4.190.0630.05719.29
5.4.180.0570.05719.23
5.4.170.0800.04718.83
5.4.160.0630.06019.12
5.4.150.0670.05719.04
5.4.140.0570.05716.34
5.4.130.0600.05016.34
5.4.120.0630.05016.78
5.4.110.0600.05316.65
5.4.100.0670.05016.53
5.4.90.0730.06316.50
5.4.80.0670.05716.45
5.4.70.0200.04716.59
5.4.60.0270.03016.54
5.4.50.0100.03016.16
5.4.40.0000.04016.25
5.4.30.0070.06716.51
5.4.20.0130.05016.22

preferences:
73.31 ms | 401 KiB | 5 Q