3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [ "order" => [ "id" => 300, "cart_url" => "http://somedomain/someuri", "currency" => "AUD", "total_product" => 100, "total_shipping" => 20, "total_adjustment" => -10, "time_placed" => "2015-03-10 14:20:00", "last_update" => "2015-03-10 14:20:00", "business_channel" => "NewChannel", "payment_methods" => ["Credit Card"], "promo_codes" => ["CT9CV5"], "carrier" => "DHL", "carrier_service" => "normal", "status" => "P", "items" => [ [ "id" => 301, "part_number" => "2015540701728-01", "unit_price" => 100, "quantity" => 1, "total_adjustment" => -10, "total_product" => 100, "last_create" => "2015-03-10T14:15:19+10:00", "last_update" => "2015-03-10T14:15:19+10:00", "name" => "Monitor", "brand" => "Dell", "status" => "P" ] ] ] ]; var_dump(json_encode($a));

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.0030.01316.50
8.3.50.0110.00521.92
8.3.40.0140.00718.76
8.3.30.0100.00318.95
8.3.20.0040.00420.14
8.3.10.0080.00021.73
8.3.00.0040.00420.84
8.2.180.0130.00918.16
8.2.170.0070.01122.96
8.2.160.0070.00722.18
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0110.00426.16
8.2.120.0100.00017.80
8.2.110.0090.00022.27
8.2.100.0040.00717.91
8.2.90.0000.00819.13
8.2.80.0050.00317.97
8.2.70.0050.00317.50
8.2.60.0080.00017.93
8.2.50.0000.00818.07
8.2.40.0000.00819.88
8.2.30.0040.00417.90
8.2.20.0050.00217.55
8.2.10.0030.00618.08
8.2.00.0030.00617.62
8.1.280.0090.01225.92
8.1.270.0080.00020.54
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0030.00623.96
8.1.230.0040.00719.10
8.1.220.0000.00917.74
8.1.210.0000.00818.77
8.1.200.0000.00917.11
8.1.190.0040.00417.12
8.1.180.0000.00818.10
8.1.170.0000.00818.38
8.1.160.0050.00221.89
8.1.150.0000.00718.87
8.1.140.0070.00017.32
8.1.130.0070.00017.80
8.1.120.0070.00017.24
8.1.110.0070.00017.30
8.1.100.0070.00017.46
8.1.90.0020.00517.31
8.1.80.0040.00417.41
8.1.70.0030.00317.28
8.1.60.0000.00817.51
8.1.50.0000.00817.50
8.1.40.0040.00417.34
8.1.30.0000.00917.65
8.1.20.0040.00417.50
8.1.10.0050.00217.38
8.1.00.0090.00017.44
8.0.300.0080.00018.77
8.0.290.0080.00016.75
8.0.280.0000.00718.33
8.0.270.0070.00017.12
8.0.260.0030.00317.25
8.0.250.0020.00516.77
8.0.240.0070.00016.80
8.0.230.0030.00316.90
8.0.220.0030.00316.85
8.0.210.0030.00316.80
8.0.200.0000.00816.86
8.0.190.0000.00816.91
8.0.180.0040.00416.75
8.0.170.0040.00416.83
8.0.160.0050.00316.85
8.0.150.0070.00016.73
8.0.140.0050.00316.81
8.0.130.0000.00613.30
8.0.120.0000.00816.70
8.0.110.0000.00716.81
8.0.100.0080.00016.71
8.0.90.0030.00516.88
8.0.80.0070.01016.89
8.0.70.0070.00016.90
8.0.60.0070.00016.80
8.0.50.0080.00016.82
8.0.30.0140.00916.97
8.0.20.0140.00817.40
8.0.10.0000.00716.85
8.0.00.0120.00616.76
7.4.330.0000.00515.03
7.4.320.0030.00316.39
7.4.300.0030.00316.31
7.4.290.0040.00416.55
7.4.280.0050.00516.59
7.4.270.0000.00716.47
7.4.260.0050.00216.52
7.4.250.0100.00016.51
7.4.240.0050.00216.53
7.4.230.0000.00716.43
7.4.220.0110.00716.46
7.4.210.0080.00716.52
7.4.200.0000.00716.35
7.4.160.0130.00316.29
7.4.150.0090.00917.40
7.4.140.0130.00317.86
7.4.130.0110.00616.37
7.4.120.0130.00716.39
7.4.110.0100.00716.53
7.4.100.0150.00616.48
7.4.90.0100.00716.64
7.4.80.0130.00416.52
7.4.70.0080.01116.25
7.4.60.0150.00016.31
7.4.50.0030.00616.05
7.4.40.0030.01316.23
7.4.30.0030.01916.24
7.4.00.0080.00814.50
7.3.330.0050.00013.04
7.3.320.0060.00612.97
7.3.310.0040.00416.19
7.3.300.0040.00215.97
7.3.290.0030.00316.15
7.3.280.0120.00916.11
7.3.270.0060.01217.40
7.3.260.0070.01116.22
7.3.250.0110.00816.42
7.3.240.0120.00816.17
7.3.230.0090.01416.39
7.3.210.0100.00716.38
7.3.200.0070.01119.39
7.3.190.0090.00616.29
7.3.180.0060.01016.47
7.3.170.0090.01216.27
7.3.160.0110.00416.24
7.2.330.0150.00916.26
7.2.320.0060.01016.18
7.2.310.0160.00316.33
7.2.300.0100.00716.35
7.2.290.0090.00916.36
7.1.70.0030.00316.78
7.1.60.0100.01319.46
7.1.50.0030.00716.81
7.1.00.0000.08022.33
7.0.200.0060.00314.93
7.0.140.0000.06322.13
7.0.90.0500.08020.02
7.0.80.0600.07719.99
7.0.70.0600.08319.89
7.0.60.0670.07719.94
7.0.50.0570.08320.23
7.0.40.0000.08020.18
7.0.30.0130.07720.14
7.0.20.0200.06719.95
7.0.10.0100.08020.14
7.0.00.0070.08020.14
5.6.280.0100.06721.08
5.6.240.0130.08020.69
5.6.230.0030.08020.67
5.6.220.0070.05020.58
5.6.210.0030.07720.64
5.6.200.0130.08021.18
5.6.190.0000.05021.08
5.6.180.0130.08321.04
5.6.170.0030.08321.10
5.6.160.0170.06721.02
5.6.150.0030.08320.95
5.6.140.0000.04721.16
5.6.130.0200.07320.93
5.6.120.0070.07720.95
5.6.110.0130.07021.15
5.6.100.0070.07321.06
5.6.90.0070.05720.99
5.6.80.0070.04020.32
5.6.70.0070.08020.31
5.6.60.0000.08320.45
5.6.50.0100.06320.49
5.6.40.0030.07320.46
5.6.30.0030.04320.39
5.6.20.0070.07720.43
5.6.10.0130.07320.52
5.6.00.0100.05720.35
5.5.380.0130.07720.57
5.5.370.0230.06020.35
5.5.360.0070.05020.53
5.5.350.0130.08320.39
5.5.340.0070.08020.75
5.5.330.0170.06020.78
5.5.320.0070.06320.76
5.5.310.0130.06020.89
5.5.300.0070.08720.82
5.5.290.0070.07720.92
5.5.280.0100.08720.77
5.5.270.0000.09320.85
5.5.260.0200.06720.90
5.5.250.0130.07720.67
5.5.240.0200.06720.22
5.5.230.0070.07320.30
5.5.220.0100.07320.21
5.5.210.0070.07020.30
5.5.200.0070.04020.23
5.5.190.0200.06320.15
5.5.180.0070.08319.99
5.5.160.0100.07320.13
5.5.150.0070.07720.14
5.5.140.0100.04019.99
5.5.130.0100.07720.23
5.5.120.0100.06720.22
5.5.110.0100.04020.15
5.5.100.0100.08020.07
5.5.90.0070.07720.15
5.5.80.0000.07720.07
5.5.70.0030.05020.00
5.5.60.0030.06019.96
5.5.50.0070.07320.07
5.5.40.0100.07320.14
5.5.30.0000.08720.05
5.5.20.0300.06019.98
5.5.10.0070.07720.05
5.5.00.0070.04720.03
5.4.450.0100.04019.39
5.4.440.0070.05319.39
5.4.430.0030.08319.57
5.4.420.0030.08019.45
5.4.410.0030.08319.25
5.4.400.0030.04018.97
5.4.390.0100.04019.12
5.4.380.0070.06718.90
5.4.370.0100.07019.04
5.4.360.0030.05018.79
5.4.350.0030.06319.14
5.4.340.0070.07318.90
5.4.320.0100.07718.97
5.4.310.0100.04318.79
5.4.300.0030.06719.09
5.4.290.0100.05319.02
5.4.280.0100.07319.25
5.4.270.0100.07018.92
5.4.260.0030.08318.94
5.4.250.0070.05719.09
5.4.240.0100.07318.80
5.4.230.0030.08319.05
5.4.220.0030.08318.95
5.4.210.0130.06018.94
5.4.200.0130.06018.95
5.4.190.0100.07718.77
5.4.180.0000.07718.80
5.4.170.0030.08319.02
5.4.160.0000.04318.94
5.4.150.0070.04019.04
5.4.140.0070.04316.23
5.4.130.0070.03316.32
5.4.120.0000.04016.23
5.4.110.0100.03016.36
5.4.100.0030.04016.33
5.4.90.0000.04016.21
5.4.80.0100.02716.20
5.4.70.0000.03716.40
5.4.60.0000.04016.28
5.4.50.0030.03016.23
5.4.40.0070.03016.47
5.4.30.0030.03316.42
5.4.20.0030.03016.34
5.4.10.0070.07016.41
5.4.00.0100.02315.68
5.3.290.0070.07714.53
5.3.280.0100.07714.54
5.3.270.0030.07314.57
5.3.260.0000.04714.44
5.3.250.0100.03014.60
5.3.240.0030.03714.60
5.3.230.0030.03714.45
5.3.220.0030.03714.40
5.3.210.0030.04314.56
5.3.200.0030.03714.43
5.3.190.0030.03714.55
5.3.180.0000.04314.53
5.3.170.0000.04014.38
5.3.160.0030.07714.55
5.3.150.0070.05314.42
5.3.140.0030.04314.52
5.3.130.0100.02714.37
5.3.120.0070.04314.55
5.3.110.0070.02714.54
5.3.100.0030.03714.03
5.3.90.0000.03713.88
5.3.80.0030.03013.97
5.3.70.0030.03013.87
5.3.60.0030.05313.86
5.3.50.0000.04013.72
5.3.40.0070.07013.92
5.3.30.0030.04013.91
5.3.20.0030.03713.63
5.3.10.0030.03313.66
5.3.00.0070.05013.54
5.2.170.0000.05310.98
5.2.160.0030.03310.93
5.2.150.0030.03011.13
5.2.140.0000.02711.17
5.2.130.0030.05310.91
5.2.120.0000.03011.12
5.2.110.0070.05011.15
5.2.100.0030.02711.09
5.2.90.0000.03011.04
5.2.80.0000.03010.91
5.2.70.0000.03311.16
5.2.60.0030.02711.04
5.2.50.0070.03011.09
5.2.40.0030.03011.04
5.2.30.0030.02310.81
5.2.20.0030.02710.81
5.2.10.0000.03310.93
5.2.00.0000.04310.79
5.1.60.0100.0179.98
5.1.50.0000.0539.99
5.1.40.0030.05310.02
5.1.30.0000.03010.40
5.1.20.0000.02710.25
5.1.10.0000.0279.87
5.1.00.0000.03310.06
5.0.50.0030.0438.55
5.0.40.0100.0438.44
5.0.30.0100.0608.25
5.0.20.0130.0338.27
5.0.10.0070.0408.05
5.0.00.0070.0638.14
4.4.90.0000.0177.22
4.4.80.0000.0177.22
4.4.70.0070.0107.22
4.4.60.0030.0137.22
4.4.50.0030.0107.22
4.4.40.0000.0237.22
4.4.30.0030.0107.22
4.4.20.0030.0177.22
4.4.10.0070.0337.22
4.4.00.0070.0477.22
4.3.110.0030.0237.22
4.3.100.0000.0377.22
4.3.90.0030.0237.22
4.3.80.0030.0537.22
4.3.70.0000.0337.22
4.3.60.0000.0337.22
4.3.50.0000.0377.22
4.3.40.0030.0407.22
4.3.30.0000.0377.22
4.3.20.0070.0307.22
4.3.10.0030.0307.22
4.3.00.0100.0237.22

preferences:
56.62 ms | 401 KiB | 5 Q