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.4.140.0150.00717.61
8.4.130.0110.00717.91
8.4.120.0140.00720.50
8.4.110.0110.00922.65
8.4.100.0160.00618.70
8.4.90.0140.00418.98
8.4.80.0140.00820.38
8.4.70.0130.00817.80
8.4.60.0060.00418.78
8.4.50.0120.01019.75
8.4.40.0070.01019.57
8.4.30.0100.01020.35
8.4.20.0040.00719.07
8.4.10.0090.00017.78
8.3.270.0120.00916.76
8.3.260.0060.00316.61
8.3.250.0120.00618.95
8.3.240.0110.00517.38
8.3.230.0120.00716.45
8.3.220.0090.00819.03
8.3.210.0130.00716.77
8.3.200.0070.00216.86
8.3.190.0100.00817.21
8.3.180.0130.00616.40
8.3.170.0070.01016.42
8.3.160.0140.00418.84
8.3.150.0000.00817.23
8.3.140.0040.00418.71
8.3.130.0030.00618.27
8.3.120.0190.00517.86
8.3.110.0030.00522.58
8.3.100.0040.00422.58
8.3.90.0000.00822.58
8.3.50.0060.00322.58
8.2.290.0100.00720.19
8.2.280.0080.00518.46
8.2.270.0040.01516.97
8.2.260.0110.00718.80
8.2.250.0040.00416.44
8.2.240.0090.00317.11
8.2.230.0040.00422.58
8.2.220.0040.00422.58
8.2.210.0040.00422.58
8.1.330.0090.00922.04
8.1.320.0090.01016.28
8.1.310.0030.00616.74
8.1.300.0070.00518.44
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:
62.98 ms | 403 KiB | 5 Q