3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo extends Exception { protected $code = 100; protected $message = 'Hello'; protected int $line = 45; protected string $file = '/path/to/file.php'; } try { throw new Foo(); } catch (Foo $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.0.90.0030.00416.75
8.0.80.0040.00416.75
8.0.70.0030.00416.76
8.0.60.0030.00516.77
8.0.50.0030.00416.75
8.0.30.0040.00316.74
8.0.20.0040.00416.79
8.0.10.0030.00516.82
8.0.00.0030.00516.93
7.4.230.0050.00116.31
7.4.220.0050.00116.35
7.4.210.0010.00616.36
7.4.200.0030.00416.35
7.4.190.0030.00416.44
7.4.180.0010.00616.40
7.4.160.0020.00516.32
7.4.150.0030.00416.30
7.4.140.0060.00116.25
7.4.130.0010.00616.15
7.4.120.0030.00416.15
7.4.110.0030.00516.29
7.4.100.0040.00316.28
7.4.90.0050.00316.22
7.4.80.0020.00516.18
7.4.70.0020.00516.19
7.4.60.0030.00316.14
7.4.50.0030.00416.30
7.4.40.0050.00116.09
7.4.30.0010.00716.25
7.4.20.0040.00416.22
7.4.10.0010.00616.29
7.4.00.0040.00316.28
7.3.300.0020.00516.16
7.3.290.0020.00516.12
7.3.280.0060.00216.16
7.3.270.0050.00216.13
7.3.260.0020.00516.13
7.3.250.0020.00516.15
7.3.240.0040.00316.14
7.3.230.0050.00216.20
7.3.220.0030.00416.08
7.3.210.0030.00516.07
7.3.200.0030.00416.05
7.3.190.0040.00316.09
7.3.180.0010.00616.08
7.3.170.0030.00316.04
7.3.160.0040.00316.10
7.3.150.0030.00416.07
7.3.140.0020.00516.13
7.3.130.0040.00316.08
7.3.120.0050.00216.04
7.3.110.0050.00216.02
7.3.100.0030.00416.03
7.3.90.0040.00316.37
7.3.80.0040.00316.03
7.3.70.0040.00316.12
7.3.60.0020.00516.21
7.3.50.0010.00516.20
7.3.40.0030.00316.19
7.3.30.0020.00516.16
7.3.20.0060.00216.96
7.3.10.0050.00316.86
7.3.00.0050.00316.87

preferences:
145.88 ms | 1386 KiB | 7 Q