3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { (function () { return "string" + throw null ?? throw new Exception('return throw null ?? throw new Exception();'); })(); } catch (Exception $e) { var_dump($e->getMessage()); } try { (function () { return "string1" . 5 . "ok" / throw throw throw throw new Exception("cool"); })(); } catch (Exception $e) { var_dump($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.4.140.0150.00617.68
8.4.130.0100.00918.12
8.4.120.0060.00322.21
8.4.110.0140.00718.61
8.4.100.0130.00717.94
8.4.90.0130.00717.84
8.4.80.0070.00118.06
8.4.70.0120.00717.97
8.4.60.0110.01117.77
8.4.50.0100.00920.57
8.4.40.0060.00618.07
8.4.30.0380.00917.50
8.4.20.0320.01417.82
8.4.10.0330.01517.22
8.3.270.0140.00616.64
8.3.260.0120.00716.70
8.3.250.0100.00818.77
8.3.240.0110.00816.85
8.3.230.0090.01016.39
8.3.220.0110.00717.13
8.3.210.0080.01016.60
8.3.200.0100.00916.71
8.3.190.0090.00517.11
8.3.180.0090.01019.03
8.3.170.0040.01417.03
8.3.160.0330.01316.61
8.3.150.0390.00716.64
8.3.140.0350.01216.37
8.3.130.0380.00916.51
8.3.120.0330.00616.25
8.3.110.0420.00416.71
8.3.100.0340.01416.40
8.3.90.0300.01016.40
8.3.80.0300.01616.68
8.3.70.0400.00616.71
8.3.60.0370.00316.06
8.3.50.0360.00916.87
8.3.40.0290.00317.70
8.3.30.0300.00417.52
8.3.20.0320.00717.39
8.3.10.0280.00817.50
8.3.00.0190.00719.23
8.2.290.0030.00420.44
8.2.280.0110.00718.46
8.2.270.0280.00916.46
8.2.260.0270.00716.60
8.2.250.0350.00616.82
8.2.240.0400.00716.45
8.2.230.0300.00916.60
8.2.220.0320.00616.36
8.2.210.0270.01216.67
8.2.200.0270.01216.31
8.2.190.0300.00816.67
8.2.180.0270.01116.41
8.2.170.0390.00817.63
8.2.160.0350.00617.55
8.2.150.0340.00617.55
8.2.140.0290.00717.55
8.2.130.0320.01117.49
8.2.120.0360.00617.52
8.2.110.0390.00717.33
8.2.100.0350.00317.41
8.2.90.0220.00317.68
8.2.80.0310.00617.59
8.2.70.0260.01017.32
8.2.60.0330.00717.31
8.2.50.0360.00317.44
8.2.40.0230.01517.66
8.2.30.0290.00717.32
8.2.20.0270.00917.62
8.2.10.0280.00917.20
8.2.00.0360.00017.52
8.1.320.0090.01016.17

preferences:
34.63 ms | 403 KiB | 5 Q