3v4l.org

run code in 300+ PHP versions simultaneously
<?php function A() { try { b(); } catch(Exception $e) { echo "Exceptin caught in " . __CLASS__; } } function B() { C(); } try { A(); } catch(Exception $e) { echo "Error caught in global scope: " . $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.0090.00618.30
8.3.50.0030.01016.58
8.3.40.0030.01020.30
8.3.30.0070.00718.71
8.3.20.0070.00024.18
8.3.10.0040.00424.66
8.3.00.0080.00026.16
8.2.180.0180.00318.38
8.2.170.0090.00918.99
8.2.160.0040.01122.96
8.2.150.0030.00525.66
8.2.140.0090.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00826.16
8.2.110.0030.00620.97
8.2.100.0090.00317.66
8.2.90.0040.00417.84
8.2.80.0030.00519.13
8.2.70.0000.00817.63
8.2.60.0040.00418.04
8.2.50.0080.00018.05
8.2.40.0030.00618.22
8.2.30.0040.00417.87
8.2.20.0040.00418.84
8.2.10.0110.00218.73
8.2.00.0090.00518.84
8.1.280.0090.00625.92
8.1.270.0080.00624.66
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00624.02
8.1.230.0080.00420.97
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0080.00417.35
8.1.190.0040.00417.23
8.1.180.0040.00419.36
8.1.170.0000.00718.67
8.1.160.0030.00519.02
8.1.150.0000.00918.45
8.1.140.0090.00618.63
8.1.130.0120.00218.49
8.1.120.0070.00718.64
8.1.110.0000.01518.63
8.1.100.0130.00318.54
8.1.90.0190.00018.53
8.1.80.0040.01218.68
8.1.70.0110.00518.63
8.1.60.0150.00518.82
8.1.50.0150.00418.75
8.1.40.0180.00418.80
8.1.30.0110.00818.70
8.1.20.0110.00818.83
8.1.10.0220.00318.77
8.1.00.0050.00518.63
8.0.300.0070.00420.03
8.0.290.0040.00416.75
8.0.280.0030.00318.38
8.0.270.0090.00018.07
8.0.260.0160.00018.04
8.0.250.0050.01218.11
8.0.240.0100.00318.19
8.0.230.0040.01318.05
8.0.220.0120.00317.98
8.0.210.0100.00617.90
8.0.200.0060.00318.10
8.0.190.0150.00018.09
8.0.180.0090.00817.97
8.0.170.0050.01017.98
8.0.160.0070.01017.96
8.0.150.0130.00418.09
8.0.140.0160.00018.03
8.0.130.0110.00517.96
8.0.120.0090.00417.99
8.0.110.0070.00317.92
8.0.100.0080.00617.97
8.0.90.0050.01017.93
8.0.80.0100.00518.00
8.0.70.0050.01017.90
8.0.60.0080.00818.00
8.0.50.0120.00217.96
8.0.30.0110.00317.99
8.0.20.0150.00018.06
8.0.10.0100.00518.13
7.4.330.0030.00316.82
7.1.00.0030.00816.82
7.0.330.0140.00316.82
7.0.00.0030.00816.82

preferences:
36.39 ms | 400 KiB | 5 Q