3v4l.org

run code in 300+ PHP versions simultaneously
<?php function save_order() { if(1==1){ throw new exception('caught exception'); } }; save_order(); function set_order_number() { echo 'SET_ORDER_NUMBER'.PHP_EOL; }; echo 'running'; 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 http_response_code().PHP_EOL; 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)
8.3.60.0130.00316.63
8.3.50.0130.00521.20
8.3.40.0110.00318.61
8.3.30.0110.00418.67
8.3.20.0000.00720.21
8.3.10.0000.00823.38
8.3.00.0080.00021.60
8.2.180.0080.00816.38
8.2.170.0040.01122.96
8.2.160.0100.00320.35
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00720.88
8.2.120.0040.00426.35
8.2.110.0060.00319.30
8.2.100.0030.01317.84
8.2.90.0080.00419.18
8.2.80.0040.00417.97
8.2.70.0000.00817.62
8.2.60.0040.00417.80
8.2.50.0000.00818.09
8.2.40.0000.00822.34
8.2.30.0050.00219.32
8.2.20.0000.00717.58
8.2.10.0040.00418.11
8.2.00.0050.00217.93
8.1.280.0100.00625.92
8.1.270.0160.00422.10
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0030.00622.66
8.1.230.0080.00418.85
8.1.220.0050.00317.77
8.1.210.0030.00518.77
8.1.200.0060.00317.35
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0040.00418.39
8.1.160.0030.00320.71
8.1.150.0040.00418.73
8.1.140.0040.00419.56
8.1.130.0030.00317.67
8.1.120.0070.00017.39
8.1.110.0030.00417.42
8.1.100.0020.00517.29
8.1.90.0040.00717.23
8.1.80.0000.01017.37
8.1.70.0040.00417.36
8.1.60.0070.00017.47
8.1.50.0000.00817.46
8.1.40.0000.01017.48
8.1.30.0040.00417.55
8.1.20.0000.00817.46
8.1.10.0030.00617.51
8.1.00.0070.00017.44
8.0.300.0000.00820.36
8.0.290.0000.00716.63
8.0.280.0000.00818.36
8.0.270.0000.00717.07
8.0.260.0000.00717.13
8.0.250.0000.00616.94
8.0.240.0040.00416.96
8.0.230.0030.00316.92
8.0.220.0000.00816.77
8.0.210.0030.00316.78
8.0.200.0040.00416.91
8.0.190.0080.00016.95
8.0.180.0080.00016.83
8.0.170.0060.00316.91
8.0.160.0030.00316.80
8.0.150.0070.00016.88
8.0.140.0070.00016.83
8.0.130.0030.00313.34
8.0.120.0040.00416.82
8.0.110.0040.00416.91
8.0.100.0040.00316.91
8.0.90.0040.00416.82
8.0.80.0000.01416.96
8.0.70.0030.00516.80
8.0.60.0070.00016.85
8.0.50.0050.00216.74
8.0.30.0080.01017.17
8.0.20.0120.01017.40
8.0.10.0030.00516.86
8.0.00.0100.00916.57
7.4.330.0000.00516.76
7.4.320.0000.00716.45
7.4.300.0040.00416.54
7.4.290.0030.00316.57
7.4.280.0000.00716.55
7.4.270.0080.00016.58
7.4.260.0000.00716.43
7.4.250.0040.00416.41
7.4.240.0040.00416.46
7.4.230.0000.00716.27
7.4.220.0120.00616.39
7.4.210.0100.01016.30
7.4.200.0070.00016.27
7.4.160.0100.00716.44
7.4.150.0150.00617.40
7.4.140.0100.01217.86
7.4.130.0060.01116.35
7.4.120.0110.00716.45
7.4.110.0100.01016.40
7.4.100.0110.00716.52
7.4.90.0160.00716.54
7.4.80.0130.00419.39
7.4.70.0090.00916.58
7.4.60.0100.01016.44
7.4.50.0120.00016.18
7.4.40.0040.01216.52
7.4.30.0110.00716.39
7.4.00.0030.01414.85
7.3.330.0060.00013.30
7.3.320.0050.00013.06
7.3.310.0000.00716.15
7.3.300.0030.00316.32
7.3.290.0130.00616.31
7.3.280.0140.00516.31
7.3.270.0060.01217.40
7.3.260.0070.01016.39
7.3.250.0110.00616.45
7.3.240.0110.00816.43
7.3.230.0060.01016.44
7.3.210.0090.00916.43
7.3.200.0110.00619.39
7.3.190.0130.00316.25
7.3.180.0140.00716.55
7.3.170.0150.00416.28
7.3.160.0100.00616.57
7.2.330.0090.00916.28
7.2.320.0100.01316.66
7.2.310.0110.01116.53
7.2.300.0130.00416.75
7.2.290.0090.00816.54
7.2.60.0060.00916.82
7.2.00.0060.00919.06
7.1.200.0070.00315.54
7.1.100.0060.00617.95
7.1.70.0030.01017.07
7.1.60.0130.01319.40
7.1.50.0060.00917.00
7.1.00.0030.07722.36
7.0.200.0440.00714.59
7.0.90.0070.08019.97
7.0.80.0000.05019.85
7.0.70.0200.04019.99
7.0.60.0470.07319.96
7.0.50.0300.03720.30
7.0.40.0070.07720.11
7.0.30.0070.04020.08
7.0.20.0070.08320.09
7.0.10.0030.07720.00
7.0.00.0030.08719.95
5.6.280.0070.04721.15
5.6.240.0030.08020.64
5.6.230.0030.09020.50
5.6.220.0030.07320.60
5.6.210.0130.06320.69
5.6.200.0030.05321.12
5.6.190.0070.08321.04
5.6.180.0100.05321.11
5.6.170.0100.04321.09
5.6.160.0100.05720.96
5.6.150.0000.08021.04
5.6.140.0070.03321.07
5.6.130.0030.04321.11
5.6.120.0070.03321.11
5.6.110.0030.04321.02
5.6.100.0100.06720.95
5.6.90.0070.03721.06
5.6.80.0100.05320.41
5.6.70.0070.03720.40
5.6.60.0070.03720.45
5.6.50.0070.03720.50
5.6.40.0030.03320.52
5.6.30.0170.05320.49
5.6.20.0100.03720.53
5.6.10.0070.03720.52
5.6.00.0070.05020.39
5.5.380.0000.06720.36
5.5.370.0070.03720.35
5.5.360.0130.07720.44
5.5.350.0000.08720.46
5.5.340.0200.06720.86
5.5.330.0070.07720.87
5.5.320.0100.06320.87
5.5.310.0030.08020.87
5.5.300.0070.03320.79
5.5.290.0030.05020.83
5.5.280.0100.03320.90
5.5.270.0030.04320.89
5.5.260.0000.04320.91
5.5.250.0000.04720.70
5.5.240.0070.07320.15
5.5.230.0000.04320.21
5.5.220.0000.04720.30
5.5.210.0070.03720.11
5.5.200.0030.04320.16
5.5.190.0030.06020.27
5.5.180.0000.04720.21
5.5.160.0030.07320.15
5.5.150.0100.05020.09
5.5.140.0030.05320.18
5.5.130.0070.03720.18
5.5.120.0030.04020.25
5.5.110.0070.04020.15
5.5.100.0130.05320.08
5.5.90.0070.03720.10
5.5.80.0070.03319.97
5.5.70.0070.03720.10
5.5.60.0070.06020.09
5.5.50.0100.03320.12
5.5.40.0030.03320.05
5.5.30.0070.03720.15
5.5.20.0000.04720.05
5.5.10.0000.04319.97
5.5.00.0030.04020.05

preferences:
57.59 ms | 401 KiB | 5 Q