3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { $name ?? throw new Exception("variable is null or not defined"); } catch (Exception $e) { echo $e->getMessage() . "\n"; } try { $name = ''; $name ?: throw new Exception("variable is falsy"); } catch (Exception $e) { echo $e->getMessage() . "\n"; }

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.0100.01117.60
8.4.130.0120.00817.83
8.4.120.0110.00924.02
8.4.110.0070.01318.70
8.4.100.0070.00217.92
8.4.90.0120.00817.70
8.4.80.0410.00817.77
8.4.70.0360.00717.78
8.4.60.0360.00817.61
8.4.50.0310.00617.71
8.4.40.0380.00917.50
8.4.30.0420.00717.51
8.4.20.0320.00617.62
8.4.10.0250.00717.46
8.3.260.0150.00416.51
8.3.250.0060.00416.63
8.3.240.0140.00617.29
8.3.230.0100.00916.73
8.3.220.0240.00416.97
8.3.210.0310.00616.97
8.3.200.0380.00616.97
8.3.190.0390.00916.97
8.3.180.0340.00616.97
8.3.170.0250.00616.97
8.3.160.0340.00616.97
8.3.150.0260.00616.97
8.3.140.0300.00816.97
8.3.130.0220.00716.97
8.3.120.0230.00416.97
8.3.110.0320.00616.97
8.3.100.0230.00516.97
8.3.90.0280.00716.97
8.3.80.0250.00416.97
8.3.70.0280.00616.97
8.3.60.0310.00616.97
8.3.50.0300.00716.97
8.3.40.0270.00717.56
8.3.30.0220.00417.39
8.3.20.0210.00717.46
8.3.10.0280.00817.50
8.3.00.0220.00717.56
8.2.290.0060.00420.58
8.2.280.0250.00816.97
8.2.270.0290.00516.97
8.2.260.0310.00716.97
8.2.250.0300.00816.97
8.2.240.0280.00816.97
8.2.230.0350.00716.97
8.2.220.0330.00816.97
8.2.210.0330.00916.97
8.2.200.0330.00716.97
8.2.190.0310.00716.97
8.2.180.0370.00816.97
8.2.170.0360.00817.71
8.2.160.0350.00817.68
8.2.150.0280.00617.53
8.2.140.0240.00517.50
8.2.130.0260.00617.47
8.2.120.0240.00617.51
8.2.110.0240.00617.56
8.2.100.0290.00917.42
8.2.90.0290.00817.66
8.2.80.0230.00417.57
8.2.70.0230.00617.38
8.2.60.0270.00417.41
8.2.50.0290.00617.43
8.2.40.0420.00717.38
8.2.30.0360.00717.37
8.2.20.0300.00917.50
8.2.10.0320.00717.58
8.2.00.0330.00817.51

preferences:
49 ms | 403 KiB | 5 Q