3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{ "id": 1154, "parent_id": 0, "status": "pending", "currency": "EUR", "version": "3.2.3", "prices_include_tax": true, "date_created": { "date": "2017-12-15 15:58:42.000000", "timezone_type": 1, "timezone": "+00:00" }, "date_modified": { "date": "2017-12-15 15:58:42.000000", "timezone_type": 1, "timezone": "+00:00" }, "discount_total": "0", "discount_tax": "0", "shipping_total": "0", "shipping_tax": "0", "cart_tax": "0", "total": "6.50", "total_tax": "0", "customer_id": 0, "order_key": "wc_order_5a33f1321ba43", "billing": { "first_name": "Peter", "last_name": "Parker", "company": "", "address_1": "Baker Str.", "address_2": "2", "city": "London", "state": "", "postcode": "50668", "country": "DE", "email": "something@gmail.com", "phone": "01627423" }, "shipping": { "first_name": "Peter", "last_name": "Parker", "company": "", "address_1": "Baker Str.", "address_2": "2", "city": "London", "state": "", "postcode": "50668", "country": "DE" }, "payment_method": "cod", "payment_method_title": "Bei Abholung", "transaction _id": "", "customer_ip_address": "...", "customer_user_agent": "mozilla/5.0 (macintosh; intel mac os x 10_13_2) applewebkit/537.36 (khtml, like gecko) chrome/blabla safari/537.36", "created_via": "checkout", "customer_note": "", "date_completed": null, "date_paid": null, "cart_hash": "be97db19eba58864b9166961ce22a706", "number": "1154", "meta_data": [{ "id": 4731, "key": "_billing_title", "value": "1" }, { "id": 4732, "key": "_shipping_title", "value": "1" }], "line_items": { "18": {} }, "tax_lines": [], "shipping_lines": { "19": {} }, "fee_lines": [], "coupon_lines": [] }'; echo '<h2>Order Details</h2>'.PHP_EOL; echo order_details(json_decode($json, true), null); function order_details($items, $str = null) { foreach ($items as $key => $item) { if (is_array($item)) { $str .= PHP_EOL.'<h3>'.ucwords(str_replace('_', ' ', $key)).'</h3>'.PHP_EOL; $str .= order_details($item, $str); } else { $str .= '<b>'.ucwords(str_replace('_', ' ', $key)).'</b>: '.$item.'</br>'.PHP_EOL; } } return $str; }

Abusive script

This script was stopped while abusing our resources

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.110.0180.00324.55
8.3.100.0100.00324.06
8.3.90.0050.00522.60
8.3.80.0050.00522.62
8.3.70.0140.01121.00
8.3.60.0240.00020.88
8.3.50.0130.00721.75
8.3.40.0150.00723.02
8.3.30.0180.00422.97
8.3.20.0060.00626.17
8.3.10.0050.00528.07
8.3.00.0110.00026.02
8.2.230.0120.00022.58
8.2.220.0110.01437.54
8.2.210.0030.00726.77
8.2.200.0080.00420.50
8.2.190.0170.00320.75
8.2.180.0100.01020.75
8.2.170.0120.00923.16
8.2.160.0140.00524.39
8.2.150.0110.00024.18
8.2.140.0180.00924.66
8.2.130.0050.00526.16
8.2.120.0090.00024.55
8.2.110.0210.00624.74
8.2.100.0150.00022.16
8.2.90.0050.00522.16
8.2.80.0030.00623.54
8.2.70.0030.00621.88
8.2.60.0110.00021.75
8.2.50.0050.00522.30
8.2.40.0090.00024.36
8.2.30.0060.00323.56
8.2.20.0030.00622.51
8.2.10.0000.00922.53
8.2.00.0100.00022.47
8.1.290.0080.00322.27
8.1.280.0160.01325.92
8.1.270.0100.00026.30
8.1.260.0030.00626.35
8.1.250.0050.00528.09
8.1.240.0160.01026.39
8.1.230.0110.00425.32
8.1.220.0100.00022.02
8.1.210.0040.00722.84
8.1.200.0080.00321.48
8.1.190.0050.00521.48
8.1.180.0060.00321.47
8.1.170.0040.00421.72
8.1.160.0040.00423.05
8.1.150.0030.00623.19
8.1.140.0030.00623.38
8.1.130.0040.00421.74
8.1.120.0100.00321.72
8.1.110.0000.00921.59
8.1.100.0030.00621.73
8.1.90.0060.00321.75
8.1.80.0060.00321.77
8.1.70.0030.00621.75
8.1.60.0030.00621.77
8.1.50.0060.00321.79
8.1.40.0060.00321.72
8.1.30.0050.00521.89
8.1.20.0000.01021.89
8.1.10.0030.00621.73
8.1.00.0000.00921.68
8.0.300.0100.00024.29
8.0.290.0080.00320.75
8.0.280.0090.00022.61
8.0.270.0000.00921.49
8.0.260.0090.00021.00
8.0.250.0000.00821.09
8.0.240.0040.00421.08
8.0.230.0080.00021.11
8.0.220.0000.00920.88
8.0.210.0080.00021.13
8.0.200.0030.00521.04
8.0.190.0000.01021.12
8.0.180.0000.00921.13
8.0.170.0050.00521.06
8.0.160.0030.00621.04
8.0.150.0090.00020.92
8.0.140.0000.01020.92
8.0.130.0030.00517.57
8.0.120.0000.01020.90
8.0.110.0000.01020.95
8.0.100.0040.00720.82
8.0.90.0040.00421.06
8.0.80.0210.00420.96
8.0.70.0090.00020.98
8.0.60.0050.00521.02
8.0.50.0090.00021.11
8.0.30.0120.01221.14
8.0.20.0160.01121.27
8.0.10.0090.00021.11
8.0.00.0200.00920.89
7.4.330.0000.00621.05
7.4.320.0000.00820.63
7.4.300.0060.00320.76
7.4.290.0040.00820.62
7.4.280.0080.00420.52
7.4.270.0060.00320.70
7.4.260.0000.00920.62
7.4.250.0000.01020.57
7.4.240.0000.00920.70
7.4.230.0060.00320.56
7.4.220.0040.00520.61
7.4.210.0060.01620.67
7.4.200.0030.00620.50
7.4.160.0140.01320.58
7.4.150.0190.00720.40
7.4.140.0130.01220.65
7.4.130.0180.00720.70
7.4.120.0160.01120.62
7.4.110.0120.01220.83
7.4.100.0100.02320.64
7.4.90.0120.01220.68
7.4.80.0140.01120.52
7.4.70.0150.01220.71
7.4.60.0110.01420.57
7.4.50.0040.01720.81
7.4.40.0170.00720.84
7.4.30.0080.01720.65
7.4.00.0030.01319.29
7.3.330.0070.00017.32
7.3.320.0000.00717.32
7.3.310.0060.00320.51
7.3.300.0050.00520.30
7.3.290.0050.00520.30
7.3.280.0140.00720.40
7.3.270.0200.00420.50
7.3.260.0110.01320.55
7.3.250.0170.00720.66
7.3.240.0180.00820.71
7.3.230.0190.00820.69
7.3.210.0080.01720.74
7.3.200.0140.00820.73
7.3.190.0200.01220.68
7.3.180.0170.01020.77
7.3.170.0070.01720.46
7.3.160.0160.01020.42
7.3.10.0070.00720.65
7.3.00.0080.00621.04
7.2.330.0260.01021.69
7.2.320.0060.01921.46
7.2.310.0140.00921.57
7.2.300.0180.00621.41
7.2.290.0140.01121.54
7.2.130.0120.00621.16
7.2.120.0070.00421.25
7.2.110.0080.00621.04
7.2.100.0060.00621.14
7.2.90.0080.00420.93
7.2.80.0080.00521.11
7.2.70.0080.00521.23
7.2.60.0090.00721.34
7.2.50.0060.00621.21
7.2.40.0070.00421.09
7.2.30.0060.00621.19
7.2.20.0040.00821.18
7.2.10.0060.00621.07
7.2.00.0340.00722.74
7.1.250.0110.00419.92
7.1.200.0040.00420.22
7.1.120.0320.01022.41
7.1.110.0380.01021.57
7.1.100.0350.01021.53
7.1.90.0340.00621.72
7.1.80.0280.01121.43
7.1.70.0300.00620.45
7.1.60.0410.01038.93
7.1.50.0490.00738.41
7.1.40.0450.01038.07
7.1.30.0470.01038.25
7.1.20.0490.01438.07
7.1.10.0360.00820.10
7.1.00.0320.01020.22

preferences:
90.43 ms | 7715 KiB | 5 Q