3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Person { private $name; private $age; public function setName($name) { $this->name = $name; } public function setAge($age) { $this->age = $age; } public function getAge() { return $this->age; } public function getName() { return $this->age; } } $person = new Person(); $person->setName("John Doe")->setAge("53"); echo $person->getName(); echo $person->getAge();

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.01118.30
8.3.50.0100.01016.35
8.3.40.0170.00318.72
8.3.30.0090.00618.57
8.3.20.0070.00020.29
8.3.10.0020.00523.48
8.3.00.0030.00519.68
8.2.180.0060.00916.60
8.2.170.0120.00922.96
8.2.160.0100.00320.40
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0140.00726.16
8.2.120.0060.00317.63
8.2.110.0050.00520.94
8.2.100.0060.00617.78
8.2.90.0040.00419.11
8.2.80.0000.00917.97
8.2.70.0080.00017.63
8.2.60.0080.00017.80
8.2.50.0080.00018.07
8.2.40.0060.00321.07
8.2.30.0000.00717.88
8.2.20.0050.00317.61
8.2.10.0000.00818.11
8.2.00.0080.00017.88
8.1.280.0110.00625.92
8.1.270.0040.01120.27
8.1.260.0060.00326.35
8.1.250.0070.00028.09
8.1.240.0100.00021.30
8.1.230.0090.00317.42
8.1.220.0000.00817.74
8.1.210.0000.01118.77
8.1.200.0060.00317.35
8.1.190.0060.00317.25
8.1.180.0030.00518.10
8.1.170.0000.00818.57
8.1.160.0050.00322.01
8.1.150.0070.00018.71
8.1.140.0040.00417.39
8.1.130.0000.00717.60
8.1.120.0040.00417.38
8.1.110.0070.00017.29
8.1.100.0000.00717.44
8.1.90.0040.00417.42
8.1.80.0000.00717.33
8.1.70.0070.00017.41
8.1.60.0040.00417.54
8.1.50.0030.00617.60
8.1.40.0040.00417.47
8.1.30.0000.00817.65
8.1.20.0000.00817.74
8.1.10.0040.00417.49
8.1.00.0030.00617.48
8.0.300.0050.00218.77
8.0.290.0070.00016.63
8.0.280.0030.00318.43
8.0.270.0000.00717.33
8.0.260.0000.00817.11
8.0.250.0070.00016.84
8.0.240.0000.00716.88
8.0.230.0080.00016.93
8.0.220.0040.00416.86
8.0.210.0040.00416.88
8.0.200.0030.00316.86
8.0.190.0000.00816.87
8.0.180.0000.01216.81
8.0.170.0000.00916.81
8.0.160.0030.00517.03
8.0.150.0080.00016.77
8.0.140.0040.00416.78
8.0.130.0030.00313.28
8.0.120.0050.00216.75
8.0.110.0030.00516.84
8.0.100.0000.00716.92
8.0.90.0000.00716.72
8.0.80.0130.00316.78
8.0.70.0040.00416.89
8.0.60.0070.00016.87
8.0.50.0000.00816.75
8.0.30.0120.00717.08
8.0.20.0140.01017.40
8.0.10.0040.00417.08
8.0.00.0110.00616.78
7.4.330.0030.00315.09
7.4.320.0000.00616.47
7.4.300.0070.00016.50
7.4.290.0060.00316.45
7.4.280.0050.00516.61
7.4.270.0070.00016.60
7.4.260.0030.00316.51
7.4.250.0040.00416.57
7.4.240.0030.00416.45
7.4.230.0040.00316.70
7.4.220.0090.00916.65
7.4.210.0060.00916.43
7.4.200.0080.00016.42
7.4.160.0080.00816.57
7.4.150.0100.01017.40
7.4.140.0100.00917.86
7.4.130.0100.00716.55
7.4.120.0120.00616.44
7.4.110.0060.01716.48
7.4.100.0110.00716.52
7.4.90.0060.01016.28
7.4.80.0100.00719.39
7.4.70.0170.00016.52
7.4.60.0090.00916.57
7.4.50.0070.00316.58
7.4.40.0140.00416.32
7.4.30.0140.00316.44
7.4.00.0060.01214.91
7.3.330.0070.00013.17
7.3.320.0000.00513.30
7.3.310.0030.00316.53
7.3.300.0030.00316.41
7.3.290.0120.00516.27
7.3.280.0090.01016.33
7.3.270.0060.01317.40
7.3.260.0070.01016.32
7.3.250.0080.00916.39
7.3.240.0070.01116.45
7.3.230.0120.01016.56
7.3.210.0100.00716.41
7.3.200.0060.01616.59
7.3.190.0130.00616.45
7.3.180.0080.01116.35
7.3.170.0100.01316.34
7.3.160.0070.01116.27
7.3.120.0040.01115.01
7.3.110.0030.01114.82
7.3.100.0030.01014.96
7.3.90.0060.00314.82
7.3.80.0070.00414.76
7.3.70.0060.00914.44
7.3.60.0030.01014.80
7.3.50.0070.01014.81
7.3.40.0000.01214.42
7.3.30.0140.00014.84
7.3.20.0070.00716.37
7.3.10.0070.00316.27
7.3.00.0030.01016.54
7.2.330.0130.00316.61
7.2.320.0060.01216.51
7.2.310.0130.00716.43
7.2.300.0140.01116.70
7.2.290.0040.01516.79
7.2.250.0060.00914.92
7.2.240.0100.01015.13
7.2.230.0040.01215.07
7.2.220.0070.00414.88
7.2.210.0110.00314.89
7.2.200.0000.01314.70
7.2.190.0060.01015.10
7.2.180.0060.00914.77
7.2.170.0070.01015.04
7.2.160.0100.00314.99
7.2.150.0040.01116.95
7.2.140.0060.01016.75
7.2.130.0070.01017.06
7.2.120.0070.01016.92
7.2.110.0030.01016.94
7.2.100.0120.00016.96
7.2.90.0070.00716.81
7.2.80.0000.01617.02
7.2.70.0030.01416.83
7.2.60.0080.00716.81
7.2.50.0000.01416.83
7.2.40.0070.01416.68
7.2.30.0100.01016.69
7.2.20.0060.00316.82
7.2.10.0000.01216.89
7.2.00.0070.00418.00
7.1.330.0030.01015.71
7.1.320.0080.00415.75
7.1.310.0070.00715.70
7.1.300.0060.00615.57
7.1.290.0070.00715.36
7.1.280.0060.00615.65
7.1.270.0040.01115.79
7.1.260.0030.00615.32
7.1.250.0070.00715.62
7.1.200.0040.00815.48
7.1.100.0110.01117.62
7.1.70.0040.00416.79
7.1.60.0060.00619.12
7.1.50.0130.00716.86
7.1.00.0130.06322.37
7.0.200.0000.00916.74
7.0.60.0170.07019.86
7.0.50.0030.04717.86
7.0.40.0100.08720.30
7.0.30.0230.06020.11
7.0.20.0400.07320.24
7.0.10.0170.07320.22
7.0.00.0070.07020.33
5.6.280.0030.05021.00
5.6.210.0000.04320.51
5.6.200.0000.07318.16
5.6.190.0030.04720.39
5.6.180.0270.08020.77
5.6.170.0300.05020.44
5.6.160.0070.08720.54
5.6.150.0100.07718.19
5.6.140.0070.04018.20
5.6.130.0100.04318.29
5.6.120.0070.03721.15
5.6.110.0130.07321.05
5.6.100.0030.07021.01
5.6.90.0170.07321.11
5.6.80.0170.06720.41
5.6.70.0230.05020.38
5.5.350.0300.07720.47
5.5.340.0070.06018.13
5.5.330.0130.07720.22
5.5.320.0470.04320.24
5.5.310.0500.07020.51
5.5.300.0030.04317.96
5.5.290.0000.04717.95
5.5.280.0070.05720.75
5.5.270.0130.05720.76
5.5.260.0130.08020.77
5.5.250.0100.07320.70
5.5.240.0300.06720.38
5.4.450.0770.06019.47
5.4.440.0730.05719.46
5.4.430.0570.06019.60
5.4.420.0700.05719.69
5.4.410.0930.06019.32
5.4.400.0770.05019.13
5.4.390.0800.06019.23
5.4.380.0830.04719.16
5.4.370.0970.03019.15
5.4.360.0770.05319.15
5.4.350.0800.05019.06
5.4.340.0670.06019.10
5.4.320.0930.03319.14
5.4.310.0730.05719.36
5.4.300.0770.04719.13
5.4.290.0630.05019.27
5.4.280.0770.04019.36
5.4.270.0600.05318.98
5.4.260.0670.04318.84
5.4.250.0670.05319.24
5.4.240.0570.06319.14
5.4.230.0700.04319.14
5.4.220.0700.05019.27
5.4.210.0600.05319.13
5.4.200.0830.04019.25
5.4.190.0730.05018.86
5.4.180.0900.03718.83
5.4.170.0700.05719.14
5.4.160.0730.05019.12
5.4.150.0800.04719.12
5.4.140.0700.05716.52
5.4.130.0730.04716.52
5.4.120.0670.05716.31
5.4.110.0770.04716.28
5.4.100.0700.04016.28
5.4.90.0500.06716.59
5.4.80.0700.05716.58
5.4.70.0230.07316.35
5.4.60.0270.07016.52
5.4.50.0000.04016.33
5.4.40.0000.03716.23
5.4.30.0000.07016.48
5.4.20.0000.03316.53

preferences:
59.72 ms | 400 KiB | 5 Q