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 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.4.20.0090.00017.91
8.4.10.0170.00317.94
8.3.150.0130.00620.62
8.3.140.0080.00018.62
8.3.130.0030.00518.63
8.3.120.0120.00618.85
8.3.110.0080.01120.94
8.3.100.0040.00416.51
8.3.90.0130.00316.61
8.3.80.0030.00617.97
8.3.70.0110.00816.63
8.3.60.0140.00416.63
8.3.50.0080.01121.34
8.3.40.0070.00718.97
8.3.30.0120.00418.64
8.3.20.0000.00720.34
8.3.10.0080.00023.36
8.3.00.0080.00021.91
8.2.270.0070.01117.01
8.2.260.0120.00618.34
8.2.250.0040.00416.70
8.2.240.0080.00017.09
8.2.230.0080.00022.58
8.2.220.0060.00324.06
8.2.210.0000.00826.77
8.2.200.0030.00616.50
8.2.190.0120.00316.80
8.2.180.0090.00616.62
8.2.170.0120.00922.96
8.2.160.0130.00020.43
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0030.00526.16
8.2.120.0040.00421.09
8.2.110.0060.01321.04
8.2.100.0080.00417.91
8.2.90.0040.00417.97
8.2.80.0050.00519.86
8.2.70.0080.00017.63
8.2.60.0000.00817.93
8.2.50.0000.00818.07
8.2.40.0080.00318.09
8.2.30.0030.00518.06
8.2.20.0040.00417.81
8.2.10.0040.00418.18
8.2.00.0040.00418.02
8.1.310.0140.00716.84
8.1.300.0050.00317.86
8.1.290.0060.00318.88
8.1.280.0070.01125.92
8.1.270.0030.01222.14
8.1.260.0030.00526.35
8.1.250.0030.00528.09
8.1.240.0030.01423.92
8.1.230.0040.00722.75
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0000.00817.35
8.1.190.0060.00317.35
8.1.180.0000.00918.10
8.1.170.0060.00318.37
8.1.160.0070.00018.88
8.1.150.0040.00418.85
8.1.140.0000.00819.57
8.1.130.0000.00717.71
8.1.120.0080.00017.40
8.1.110.0000.00717.35
8.1.100.0040.00417.45
8.1.90.0000.00717.34
8.1.80.0070.00517.37
8.1.70.0000.00717.39
8.1.60.0030.00617.57
8.1.50.0090.00017.59
8.1.40.0030.00617.52
8.1.30.0030.00617.64
8.1.20.0040.00417.64
8.1.10.0040.00417.57
8.1.00.0000.00717.39
8.0.300.0070.00019.98
8.0.290.0060.00316.88
8.0.280.0030.00318.44
8.0.270.0080.00017.16
8.0.260.0030.00317.15
8.0.250.0000.00616.96
8.0.240.0000.00817.03
8.0.230.0000.00716.82
8.0.220.0000.00716.89
8.0.210.0040.00416.91
8.0.200.0070.00316.93
8.0.190.0040.00416.87
8.0.180.0000.00816.89
8.0.170.0030.00516.80
8.0.160.0030.00316.81
8.0.150.0040.00416.96
8.0.140.0040.00416.79
8.0.130.0030.00313.34
8.0.120.0000.00816.93
8.0.110.0000.00716.78
8.0.100.0000.00716.97
8.0.90.0040.00416.81
8.0.80.0000.01416.88
8.0.70.0000.00716.98
8.0.60.0040.00417.07
8.0.50.0030.00516.75
8.0.30.0100.00817.17
8.0.20.0100.01217.40
8.0.10.0040.00416.95
8.0.00.0120.00516.89
7.4.330.0050.00016.83
7.4.320.0030.00316.52
7.4.300.0000.00716.51
7.4.290.0040.00416.40
7.4.280.0040.00416.54
7.4.270.0030.00316.50
7.4.260.0050.00316.63
7.4.250.0050.00216.57
7.4.240.0030.00316.44
7.4.230.0000.00716.63
7.4.220.0030.01616.64
7.4.210.0110.00416.45
7.4.200.0030.00316.30
7.4.160.0090.00616.39
7.4.150.0090.00917.40
7.4.140.0080.01317.86
7.4.130.0130.00716.63
7.4.120.0090.00816.49
7.4.110.0130.00316.60
7.4.100.0070.01016.34
7.4.90.0130.00416.50
7.4.80.0040.01219.39
7.4.70.0120.00916.71
7.4.60.0060.01216.44
7.4.50.0100.00616.33
7.4.40.0100.00716.48
7.4.30.0060.01616.63
7.4.00.0060.01015.20
7.3.330.0020.00213.29
7.3.320.0060.00013.30
7.3.310.0070.00016.18
7.3.300.0030.00316.32
7.3.290.0090.00716.28
7.3.280.0070.01216.32
7.3.270.0110.00717.40
7.3.260.0070.01116.36
7.3.250.0130.00616.34
7.3.240.0070.01016.46
7.3.230.0090.00916.41
7.3.210.0060.00916.59
7.3.200.0060.00919.39
7.3.190.0030.01316.47
7.3.180.0140.00316.45
7.3.170.0060.01516.38
7.3.160.0060.01316.32
7.3.10.0070.00716.50
7.3.00.0080.00516.72
7.2.330.0170.00316.76
7.2.320.0200.00616.48
7.2.310.0040.01216.58
7.2.300.0110.00716.39
7.2.290.0030.01316.55
7.2.130.0090.00716.78
7.2.120.0060.00516.95
7.2.110.0080.00616.89
7.2.100.0070.00816.86
7.2.90.0090.00417.02
7.2.80.0050.00816.76
7.2.70.0060.00616.99
7.2.60.0080.00716.95
7.2.50.0070.00716.84
7.2.40.0050.00717.12
7.2.30.0050.00817.14
7.2.20.0070.00716.93
7.2.10.0030.00916.96
7.2.00.0050.00817.66
7.1.250.0060.00815.58
7.1.240.0120.00315.41
7.1.230.0060.00715.58
7.1.220.0040.00715.64
7.1.210.0030.01015.76
7.1.200.0000.01515.75
7.1.190.0030.00815.80
7.1.180.0060.00715.62
7.1.170.0040.00415.86
7.1.160.0080.00015.85
7.1.150.0060.00315.89
7.1.140.0040.00715.77
7.1.130.0030.01015.70
7.1.120.0030.00715.75
7.1.110.0070.01015.70
7.1.100.0080.00516.99
7.1.90.0060.00615.58
7.1.80.0100.00315.68
7.1.70.0000.01016.58
7.1.60.0070.01317.65
7.1.50.0050.00516.45
7.1.40.0060.00315.49
7.1.30.0000.01415.38
7.1.20.0000.01115.88
7.1.10.0060.00615.64
7.1.00.0100.03519.13
7.0.330.0000.01315.06
7.0.320.0080.00015.46
7.0.310.0110.00415.50
7.0.300.0090.00615.39
7.0.290.0000.00815.38
7.0.280.0030.00915.46
7.0.270.0030.00515.13
7.0.260.0000.01615.39
7.0.250.0060.00615.30
7.0.240.0130.00015.44
7.0.230.0060.01015.38
7.0.220.0000.00915.49
7.0.210.0050.00515.30
7.0.200.0300.00914.89
7.0.190.0070.00715.32
7.0.180.0040.01115.40
7.0.170.0000.01315.43
7.0.160.0070.00715.01
7.0.150.0050.00315.33
7.0.140.0030.01015.40
7.0.130.0030.00615.55
7.0.120.0040.01115.50
7.0.110.0030.00715.30
7.0.100.0060.00915.11
7.0.90.0320.03517.65
7.0.80.0320.02517.46
7.0.70.0340.04317.62
7.0.60.0330.02817.44
7.0.50.0360.03517.89
7.0.40.0070.04716.59
7.0.30.0120.02816.66
7.0.20.0070.03016.79
7.0.10.0050.03016.74
7.0.00.0060.03616.84
5.6.380.0090.00614.24
5.6.370.0140.00314.18
5.6.360.0070.01014.39
5.6.350.0070.00714.14
5.6.340.0000.00814.29
5.6.330.0080.00414.21
5.6.320.0050.00314.29
5.6.310.0090.00614.45
5.6.300.0000.01314.08
5.6.290.0000.01814.35
5.6.280.0070.03217.69
5.6.270.0090.00614.01
5.6.260.0000.00914.62
5.6.250.0090.00014.59
5.6.240.0050.03817.48
5.6.230.0050.02917.44
5.6.220.0070.04117.23
5.6.210.0050.04517.33
5.6.200.0080.02817.77
5.6.190.0070.04817.69
5.6.180.0100.04117.57
5.6.170.0120.03817.59
5.6.160.0060.03117.69
5.6.150.0070.03217.45
5.6.140.0030.02517.53
5.6.130.0070.04517.59
5.6.120.0030.03217.58
5.6.110.0050.03517.70
5.6.100.0100.04217.66
5.6.90.0080.04517.55
5.6.80.0110.03617.15
5.6.70.0050.04217.32
5.6.60.0000.04017.37
5.6.50.0100.03917.46
5.6.40.0050.03417.32
5.6.30.0070.03417.18
5.6.20.0050.02517.32
5.6.10.0090.02117.23
5.6.00.0100.04317.25
5.5.380.0080.03315.78
5.5.370.0030.04015.94
5.5.360.0030.03415.72
5.5.350.0050.02315.60
5.5.340.0070.04315.99
5.5.330.0100.02815.88
5.5.320.0060.04315.83
5.5.310.0050.02615.85
5.5.300.0100.02516.09
5.5.290.0100.04016.04
5.5.280.0020.04315.98
5.5.270.0080.03315.87
5.5.260.0080.04016.09
5.5.250.0030.05015.69
5.5.240.0050.03915.67
5.5.230.0070.03815.49
5.5.220.0030.04015.52
5.5.210.0070.03715.62
5.5.200.0080.03815.59
5.5.190.0070.04015.50
5.5.180.0020.04315.55
5.5.170.0060.00610.75
5.5.160.0080.03815.44
5.5.150.0020.03815.54
5.5.140.0080.03115.67
5.5.130.0080.03815.71
5.5.120.0090.03515.66
5.5.110.0100.02515.66
5.5.100.0070.03315.69
5.5.90.0070.03815.67
5.5.80.0030.04315.55
5.5.70.0030.03315.54
5.5.60.0120.03515.60
5.5.50.0060.03815.65
5.5.40.0060.04115.60
5.5.30.0050.04215.67
5.5.20.0050.04615.68
5.5.10.0080.04015.62
5.5.00.0080.03515.56

preferences:
30.07 ms | 403 KiB | 5 Q