3v4l.org

run code in 300+ PHP versions simultaneously
<?php function save_order() { if(1==1){ throw new exception('caught exception'); } } function set_order_number() { echo 'SET_ORDER_NUMBER'.PHP_EOL; } function set_plan_id() { echo 'SET PLAN ID'.PHP_EOL; } try{ save_order(); //for testing purposed, guaranteed to throw exception set_order_number(); set_plan_id(); //WHY DOES THIS STILL EXECUTE? }catch(Exception $e){ header('Internal Server Error', true, 500); echo json_encode(array('msg'=>$e->getMessage()); exit; }

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)
7.0.20.0300.04720.27
7.0.10.0130.06720.05
7.0.00.0130.08020.07
5.6.170.0330.04720.57
5.6.160.0030.09320.59
5.6.150.0030.05718.17
5.6.140.0130.06718.21
5.6.130.0030.06318.23
5.6.120.0000.04321.13
5.6.110.0100.05021.08
5.6.100.0000.04320.98
5.6.90.0130.08020.99
5.6.80.0100.07720.36
5.5.310.0370.07020.34
5.5.300.0130.07318.06
5.5.290.0100.07717.92
5.5.280.0070.04720.90
5.5.270.0100.05320.76
5.5.260.0030.08320.79
5.5.250.0100.06720.69
5.5.240.0100.06020.36

preferences:
150.88 ms | 1394 KiB | 7 Q