3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Foo { public function __destruct() { static $i = 0; $i++; throw new Exception('Foo::__destruct() ' . $i); } } try { var_dump(new Foo() + new Foo()); } catch (Exception $e) { var_dump($e); }

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.5.30.0070.01019.15
8.5.20.0110.00718.86
8.5.10.0060.00216.87
8.5.00.0120.00920.04
8.4.180.0110.01219.80
8.4.170.0090.01423.94
8.4.160.0120.00923.21
8.4.150.0090.00316.98
8.4.140.0120.01317.88
8.4.130.0120.00917.74
8.4.120.0100.00920.65
8.4.110.0080.00522.49
8.4.100.0140.00618.16
8.4.90.0040.00422.40
8.4.80.0130.00819.66
8.4.70.0130.00817.81
8.4.60.0130.00719.07
8.4.50.0040.00522.36
8.4.40.0030.01717.71
8.4.30.0130.00618.66
8.4.20.0140.00717.98
8.4.10.0030.00619.46
8.3.300.0080.01518.49
8.3.290.0150.00618.50
8.3.280.0140.00618.43
8.3.270.0180.00816.55
8.3.260.0050.00516.69
8.3.250.0090.00718.84
8.3.240.0060.00516.70
8.3.230.0140.00616.77
8.3.220.0130.00619.03
8.3.210.0120.00318.55
8.3.200.0070.00216.55
8.3.190.0100.00817.18
8.3.180.0050.00616.54
8.3.170.0080.01117.24
8.3.160.0040.00418.45
8.3.150.0090.00920.81
8.3.140.0040.00416.55
8.3.130.0060.00318.71
8.3.120.0040.00418.71
8.3.110.0080.00020.94
8.3.100.0000.00824.06
8.3.90.0080.00026.77
8.3.80.0090.00017.97
8.3.70.0070.01616.78
8.3.60.0180.00016.75
8.3.50.0090.00616.89
8.3.40.0160.00021.98
8.3.30.0070.00719.22
8.3.20.0090.00024.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.300.0110.00917.98
8.2.290.0110.00820.55
8.2.280.0130.00618.66
8.2.270.0090.00917.16
8.2.260.0090.00618.78
8.2.250.0060.00318.36
8.2.240.0030.00616.95
8.2.230.0090.00022.58
8.2.220.0070.01337.54
8.2.210.0130.00326.77
8.2.200.0090.00016.88
8.2.190.0200.00018.41
8.2.180.0130.00616.73
8.2.170.0150.00019.12
8.2.160.0120.00322.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00321.00
8.2.110.0040.00719.30
8.2.100.0300.00018.44
8.2.90.0300.00018.44
8.2.80.0270.00418.44
8.2.70.0270.00318.44
8.2.60.0280.00418.44
8.2.50.0230.00718.44
8.2.40.0070.01419.08
8.2.30.0250.00318.44
8.2.20.0230.00718.44
8.2.10.0190.00918.44
8.2.00.0200.00718.44
8.1.340.0090.01117.86
8.1.330.0100.00922.05
8.1.320.0140.00716.16
8.1.310.0030.00516.87
8.1.300.0060.00318.21
8.1.290.0030.00630.84
8.1.280.0100.01025.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0160.00621.05
8.1.230.0060.01119.00
8.1.220.0280.00018.44
8.1.210.0220.00618.44
8.1.200.0280.00018.44
8.1.190.0040.00919.01
8.1.180.0210.00518.44
8.1.170.0170.01018.44
8.1.160.0250.00418.44
8.1.150.0260.00318.44
8.1.140.0190.00818.44
8.1.130.0260.00318.44
8.1.120.0230.00418.44
8.1.110.0170.01018.44
8.1.100.0240.00318.44
8.1.90.0280.00018.44
8.1.80.0270.00318.44
8.1.70.0220.00618.44
8.1.60.0270.00318.44
8.1.50.0160.01218.44
8.1.40.0270.01218.44
8.1.30.0170.01218.44
8.1.20.0300.00318.44
8.1.10.0230.00318.44
8.1.00.0200.00818.44
8.0.300.0170.01218.44
8.0.290.0230.00418.44
8.0.280.0120.01618.44
8.0.270.0190.00918.44
8.0.260.0240.00418.44
8.0.250.0280.00018.44
8.0.240.0250.00018.44
8.0.230.0190.00818.44
8.0.220.0220.00518.44
8.0.210.0240.00418.44
8.0.200.0230.00518.44
8.0.190.0170.01018.44
8.0.180.0210.00718.44
8.0.170.0190.01018.44
8.0.160.0270.00018.44
8.0.150.0200.00818.44
8.0.140.0140.01418.44
8.0.130.0170.01018.44
8.0.120.0210.00618.44
8.0.110.0220.00418.44
8.0.100.0210.00718.44
8.0.90.0280.00018.44
8.0.80.0250.00318.44
8.0.70.0370.00018.44
8.0.60.0260.00018.44
8.0.50.0170.00718.44
8.0.30.0170.01118.44
8.0.20.0250.00418.44
8.0.10.0230.00418.44

preferences:
44.84 ms | 1353 KiB | 5 Q