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($duty);

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.0150.00418.30
8.3.50.0110.00418.02
8.3.40.0060.00918.68
8.3.30.0060.00818.70
8.3.20.0050.00321.91
8.3.10.0040.00421.86
8.3.00.0090.00023.48
8.2.180.0120.00916.75
8.2.170.0130.00319.09
8.2.160.0140.00022.96
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0080.00020.93
8.2.110.0080.00020.97
8.2.100.0070.00717.91
8.2.90.0040.00418.34
8.2.80.0040.00418.16
8.2.70.0050.00318.03
8.2.60.0080.00018.04
8.2.50.0000.00718.10
8.2.40.0040.00419.17
8.2.30.0000.00721.01
8.2.20.0040.00418.09
8.2.10.0040.00418.00
8.2.00.0040.00419.95
8.1.280.0100.01025.92
8.1.270.0050.00322.06
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0120.00022.08
8.1.230.0040.00822.77
8.1.220.0060.00317.74
8.1.210.0050.00318.77
8.1.200.0000.00817.22
8.1.190.0060.00317.23
8.1.180.0000.00818.10
8.1.170.0030.00518.47
8.1.160.0040.00418.69
8.1.150.0000.00720.78
8.1.140.0030.00317.69
8.1.130.0030.00618.92
8.1.120.0050.00217.32
8.1.110.0040.00417.27
8.1.100.0070.00017.29
8.1.90.0080.00017.31
8.1.80.0040.00417.39
8.1.70.0040.00417.42
8.1.60.0050.00317.49
8.1.50.0030.00517.45
8.1.40.0040.00417.45
8.1.30.0030.00517.63
8.1.20.0040.00417.45
8.1.10.0040.00417.57
8.1.00.0000.00817.36
8.0.300.0050.00220.03
8.0.290.0050.00316.75
8.0.280.0000.00818.42
8.0.270.0000.00717.16
8.0.260.0000.00617.24
8.0.250.0030.00316.88
8.0.240.0050.00316.91
8.0.230.0030.00316.86
8.0.220.0040.00316.69
8.0.210.0070.00016.82
8.0.200.0000.00716.94
8.0.190.0060.00316.78
8.0.180.0030.00416.89
8.0.170.0040.00416.81
8.0.160.0040.00416.86
8.0.150.0070.00016.69
8.0.140.0030.00316.66
8.0.130.0060.00013.23
8.0.120.0030.00516.81
8.0.110.0000.00716.88
8.0.100.0000.00816.75
8.0.90.0000.00716.89
8.0.80.0070.00716.80
8.0.70.0070.00016.66
8.0.60.0000.00716.77
8.0.50.0000.00716.61
8.0.30.0080.01117.03
8.0.20.0100.01017.40
8.0.10.0000.00716.83
8.0.00.0110.00716.84
7.4.330.0050.00015.55
7.4.320.0000.00616.41
7.4.300.0030.00316.40
7.4.290.0070.00016.32
7.4.280.0040.00416.56
7.4.270.0030.00316.53
7.4.260.0030.00616.41
7.4.250.0080.00016.48
7.4.240.0040.00416.52
7.4.230.0040.00416.24
7.4.220.0030.00516.55
7.4.210.0080.00516.58
7.4.200.0030.00316.43
7.4.160.0090.00616.48
7.4.140.0100.00717.86
7.4.130.0110.01116.39
7.4.120.0100.00916.41
7.4.110.0140.00716.55
7.4.100.0090.00616.57
7.4.90.0060.01216.72
7.4.80.0060.01219.39
7.4.70.0190.00316.37
7.4.60.0100.00616.62
7.4.50.0120.00616.30
7.4.40.0180.00616.33
7.4.00.0030.01014.70
7.3.330.0050.00013.13
7.3.320.0030.00312.98
7.3.310.0000.00716.12
7.3.300.0030.00316.11
7.3.290.0000.00716.09
7.3.280.0120.00516.25
7.3.260.0080.00816.43
7.3.240.0110.00816.37
7.3.230.0120.01216.38
7.3.210.0080.01516.51
7.3.200.0090.00616.29
7.3.190.0080.01416.25
7.3.180.0080.00816.28
7.3.170.0030.01416.28
7.3.160.0140.00716.53
7.3.10.0070.00616.72
7.3.00.0090.00316.72
7.2.330.0160.00416.81
7.2.320.0090.00916.63
7.2.310.0130.01016.50
7.2.300.0190.00316.70
7.2.290.0080.00816.57
7.2.130.0090.00316.96
7.2.120.0020.01216.89
7.2.110.0090.00616.76
7.2.100.0050.00816.69
7.2.90.0080.00616.87
7.2.80.0050.00716.96
7.2.70.0040.01016.86
7.2.60.0090.00716.89
7.2.50.0080.00616.84
7.2.40.0260.01017.35
7.2.30.0290.00717.27
7.2.20.0270.00717.17
7.2.10.0280.01017.17
7.2.00.0520.00717.22
7.1.250.0030.00815.86
7.1.200.0030.01015.92
7.1.160.0880.00816.29
7.1.150.1460.01216.96
7.1.140.1120.01316.46
7.1.130.0830.01116.56
7.1.120.0890.01016.30
7.1.110.0840.00715.99
7.1.100.0930.00716.29
7.1.90.0770.01116.20
7.1.80.0720.00715.90
7.1.70.0660.00915.21
7.1.60.0880.00733.08
7.1.50.0780.01332.93
7.1.40.0930.01132.47
7.1.30.0900.01232.64
7.1.20.0860.01332.54
7.1.10.0740.00814.71
7.1.00.1140.00814.76

preferences:
49.82 ms | 400 KiB | 5 Q