3v4l.org

run code in 300+ PHP versions simultaneously
<?php $duty = array(); $duty['quantity'] = 1; $duty['sku'] = '20-76-01-0040-000-000'; $duty['name'] = 'Duties'; $duty['price'] = array( "amountExcludingTax" => 12.99, "amountIncludingTax" => 12.99, "tax" => 0 ); $data['rows'][] = $duty; $service = array(); $service['quantity'] = 1; $service['sku'] = '20-76-01-0050-000-000'; $service['name'] = 'Service Fees'; $service['price'] = array( "amountExcludingTax" => 20.50, "amountIncludingTax" => 20.50, "tax" => 0 ); $data['rows'][] = $service; echo json_encode($data);

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.70.0120.00618.03
8.3.60.0060.00918.37
8.3.50.0090.00618.15
8.3.40.0110.00718.99
8.3.30.0100.00618.46
8.3.20.0000.00721.60
8.3.10.0040.00421.73
8.3.00.0080.00023.60
8.2.190.0110.00416.88
8.2.180.0140.00716.75
8.2.170.0070.00719.07
8.2.160.0070.00722.96
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00420.97
8.2.120.0040.00426.35
8.2.110.0030.00620.54
8.2.100.0050.00517.91
8.2.90.0030.00518.16
8.2.80.0040.00418.22
8.2.70.0000.00817.93
8.2.60.0030.00617.93
8.2.50.0050.00318.28
8.2.40.0000.00819.21
8.2.30.0030.00621.11
8.2.20.0050.00218.16
8.2.10.0030.00517.97
8.2.00.0000.00719.88
8.1.280.0100.01025.92
8.1.270.0080.00023.79
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0050.00522.08
8.1.230.0000.01122.67
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0000.00817.35
8.1.190.0060.00317.23
8.1.180.0000.00818.10
8.1.170.0000.00818.51
8.1.160.0000.00818.75
8.1.150.0050.00220.67
8.1.140.0070.00017.54
8.1.130.0070.00017.34
8.1.120.0040.00417.39
8.1.110.0040.00417.39
8.1.100.0070.00017.39
8.1.90.0040.00417.31
8.1.80.0000.00717.39
8.1.70.0040.00417.36
8.1.60.0040.00417.41
8.1.50.0040.00417.43
8.1.40.0080.00017.35
8.1.30.0000.00817.55
8.1.20.0030.00517.59
8.1.10.0050.00217.56
8.1.00.0030.00517.49
8.0.300.0000.00819.91
8.0.290.0040.00416.75
8.0.280.0000.00718.42
8.0.270.0030.00317.21
8.0.260.0000.00816.71
8.0.250.0000.00716.81
8.0.240.0040.00416.92
8.0.230.0030.00316.86
8.0.220.0040.00416.65
8.0.210.0030.00316.82
8.0.200.0030.00316.83
8.0.190.0080.00016.77
8.0.180.0040.00416.80
8.0.170.0090.00016.84
8.0.160.0070.00016.90
8.0.150.0030.00716.80
8.0.140.0080.00016.66
8.0.130.0060.00313.28
8.0.120.0080.00016.82
8.0.110.0000.00716.76
8.0.100.0000.00716.82
8.0.90.0050.00216.84
8.0.80.0090.00616.86
8.0.70.0000.00716.93
8.0.60.0000.00816.80
8.0.50.0000.00816.66
8.0.30.0070.01316.98
8.0.20.0130.00917.40
8.0.10.0040.00416.81
8.0.00.0150.00516.82
7.4.330.0020.00215.55
7.4.320.0030.00316.54
7.4.300.0030.00316.42
7.4.290.0050.00316.50
7.4.280.0000.00816.50
7.4.270.0070.00016.41
7.4.260.0030.00616.41
7.4.250.0070.00016.48
7.4.240.0070.00016.51
7.4.230.0030.00316.33
7.4.220.0000.00916.42
7.4.210.0090.00716.58
7.4.200.0000.00716.50
7.4.160.0100.00816.36
7.4.140.0080.01017.86
7.4.130.0150.00716.46
7.4.120.0110.00816.51
7.4.110.0120.01216.47
7.4.100.0070.01016.39
7.4.90.0110.00616.48
7.4.80.0120.00619.39
7.4.70.0090.01216.38
7.4.60.0100.00616.41
7.4.50.0100.00616.44
7.4.40.0000.02016.35
7.4.00.0030.00914.86
7.3.330.0000.00513.23
7.3.320.0000.00613.09
7.3.310.0070.00016.19
7.3.300.0000.00616.09
7.3.290.0040.00416.29
7.3.280.0090.00716.22
7.3.260.0090.00816.42
7.3.240.0080.01016.31
7.3.230.0140.00716.41
7.3.210.0170.00716.32
7.3.200.0060.01016.56
7.3.190.0060.01116.35
7.3.180.0030.01316.49
7.3.170.0110.00616.36
7.3.160.0170.00316.41
7.2.330.0030.01616.61
7.2.320.0070.01016.27
7.2.310.0150.00316.73
7.2.300.0120.01216.32
7.2.290.0000.01716.67
7.2.60.0110.00716.91
7.2.50.0030.01316.55
7.2.40.0750.00617.79
7.2.30.0900.00917.81
7.2.20.0910.01217.98
7.2.10.1060.00617.82
7.2.00.0850.01017.66
7.1.200.0040.01115.55
7.1.160.0890.00516.73
7.1.150.1150.01116.64
7.1.140.1130.01016.61
7.1.130.1510.01216.93
7.1.120.0900.00916.61
7.1.110.1010.00915.89
7.1.100.0980.00916.28
7.1.90.1700.01016.06
7.1.80.0940.00716.15
7.1.70.0960.00815.21
7.1.60.1170.01333.16
7.1.50.0970.00933.11
7.1.40.1080.00732.35
7.1.30.0960.01032.77
7.1.20.0870.01332.65
7.1.10.1020.00814.80
7.1.00.1010.00514.91

preferences:
51.44 ms | 401 KiB | 5 Q