3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Test; class Test { private $s; private $i; public function __construct(string $s, int $i) { $this->s = $s; $this->i = $i / 0; } public function foo() { return 's: ' . $this->s . ', i: ' . $this->i; } } try { $a = new Test('Hello, world!', 2015); echo $a->foo(); } catch (\Error $e) { // echo $e->getMessage(); }

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.38
8.3.50.0160.00321.99
8.3.40.0090.00618.97
8.3.30.0090.00618.88
8.3.20.0080.00020.30
8.3.10.0070.00021.90
8.3.00.0040.00419.13
8.2.180.0100.00716.50
8.2.170.0120.00322.96
8.2.160.0170.00020.35
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0080.00017.50
8.2.120.0040.00426.35
8.2.110.0030.00722.11
8.2.100.0080.00417.93
8.2.90.0040.00419.27
8.2.80.0000.00817.97
8.2.70.0080.00017.50
8.2.60.0030.00617.79
8.2.50.0080.00018.07
8.2.40.0080.00019.37
8.2.30.0040.00420.55
8.2.20.0050.00517.82
8.2.10.0020.00518.04
8.2.00.0050.00317.92
8.1.280.0140.00725.92
8.1.270.0100.00322.19
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0060.00322.54
8.1.230.0110.00017.78
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0080.00017.22
8.1.190.0030.00617.22
8.1.180.0050.00218.10
8.1.170.0040.00419.06
8.1.160.0050.00321.86
8.1.150.0000.00818.80
8.1.140.0040.00419.43
8.1.130.0000.00717.60
8.1.120.0070.00017.42
8.1.110.0050.00217.33
8.1.100.0030.00617.37
8.1.90.0000.00717.38
8.1.80.0040.00417.29
8.1.70.0000.00717.39
8.1.60.0050.00217.57
8.1.50.0040.00417.52
8.1.40.0040.00417.46
8.1.30.0030.00617.50
8.1.20.0030.00617.68
8.1.10.0040.00417.56
8.1.00.0040.00417.52
8.0.300.0070.00018.77
8.0.290.0050.00316.63
8.0.280.0050.00318.37
8.0.270.0040.00417.28
8.0.260.0000.00817.13
8.0.250.0070.00016.99
8.0.240.0040.00416.96
8.0.230.0000.00716.88
8.0.220.0000.00716.84
8.0.210.0000.00716.89
8.0.200.0000.00617.00
8.0.190.0060.00316.84
8.0.180.0000.00716.91
8.0.170.0040.00416.93
8.0.160.0030.00316.91
8.0.150.0030.00316.79
8.0.140.0000.00716.73
8.0.130.0020.00513.32
8.0.120.0040.00416.86
8.0.110.0080.00016.90
8.0.100.0050.00216.86
8.0.90.0000.00816.89
8.0.80.0070.01016.80
8.0.70.0040.00416.72
8.0.60.0040.00416.95
8.0.50.0030.00316.88
8.0.30.0130.00616.96
8.0.20.0080.01017.40
8.0.10.0040.00416.79
8.0.00.0150.00716.78
7.4.330.0000.00516.71
7.4.320.0000.00616.46
7.4.300.0070.00016.40
7.4.290.0030.00316.50
7.4.280.0050.00316.48
7.4.270.0000.00716.61
7.4.260.0070.00016.38
7.4.250.0030.00516.42
7.4.240.0050.00216.42
7.4.230.0040.00416.50
7.4.220.0120.00616.40
7.4.210.0010.01316.53
7.4.200.0030.00316.34
7.4.160.0120.00316.42
7.4.150.0130.00417.40
7.4.140.0090.00917.86
7.4.130.0080.01216.46
7.4.120.0100.00816.51
7.4.110.0130.00316.61
7.4.100.0080.00816.41
7.4.90.0100.00716.50
7.4.80.0030.01919.39
7.4.70.0130.01016.69
7.4.60.0120.00316.73
7.4.50.0070.01016.55
7.4.40.0200.00016.30
7.4.30.0070.01316.39
7.4.00.0080.00814.71
7.3.330.0030.00313.25
7.3.320.0020.00213.29
7.3.310.0070.00016.43
7.3.300.0000.00716.36
7.3.290.0030.00316.42
7.3.280.0110.00716.40
7.3.270.0130.00617.40
7.3.260.0100.00716.46
7.3.250.0070.01416.52
7.3.240.0100.00816.50
7.3.230.0110.00716.47
7.3.210.0130.00316.45
7.3.200.0030.01316.43
7.3.190.0120.01216.47
7.3.180.0110.00516.50
7.3.170.0070.01416.39
7.3.160.0070.01016.48
7.3.10.0000.01216.54
7.3.00.0080.00416.78
7.2.330.0100.00716.59
7.2.320.0100.00616.61
7.2.310.0100.00716.79
7.2.300.0040.01216.39
7.2.290.0090.00916.46
7.2.130.0030.01016.82
7.2.120.0090.00616.88
7.2.110.0060.00916.89
7.2.100.0080.00816.59
7.2.90.0130.00317.02
7.2.80.0040.00817.08
7.2.70.0060.00317.10
7.2.60.0080.00616.86
7.2.50.0040.01116.98
7.2.40.0060.01216.71
7.2.30.0060.01216.73
7.2.20.0060.00616.78
7.2.10.0000.01217.07
7.2.00.0060.00718.05
7.1.250.0030.01016.02
7.1.200.0030.00915.91
7.1.100.0030.00918.30
7.1.70.0030.00617.03
7.1.60.0130.01019.48
7.1.50.0060.00917.01
7.1.00.0030.07722.44
7.0.200.1090.00314.50
7.0.60.0030.08020.02
7.0.50.0130.04017.88
7.0.40.0200.07320.04
7.0.30.0130.08320.16
7.0.20.0200.08320.13
7.0.10.0200.07320.23
7.0.00.0030.05020.29
5.6.280.0030.06321.03
5.6.210.0170.07720.51
5.6.200.0130.08018.12
5.6.190.0200.07720.50
5.6.180.0270.07720.77
5.6.170.0100.04720.53
5.6.160.0070.08320.39
5.6.150.0030.04018.15
5.6.140.0070.04018.15
5.6.130.0100.03718.15
5.6.120.0100.08721.01
5.6.110.0170.07720.98
5.6.100.0130.04720.99
5.6.90.0100.08021.08
5.6.80.0100.05320.38
5.5.350.4300.03020.30
5.5.340.0100.08017.95
5.5.330.0070.04320.30
5.5.320.0070.08020.28
5.5.310.0270.05020.37
5.5.300.0030.04717.95
5.5.290.0070.03718.03
5.5.280.0070.07320.97
5.5.270.0070.08720.88
5.5.260.0070.04020.77
5.5.250.0230.06320.51
5.5.240.0270.03020.28

preferences:
31.94 ms | 401 KiB | 5 Q