3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tags1 = array("##ORDER_TABLE##", "##USERNAME##", "##TOTAL_PRICE##"); $values1 = array("suck", "my", "dick"); $tags2 = array("##MAIL_FROM##", "##ITEM_NAME##", "##ITEM_LINK##", "##ITEM_IMG##", "##MESSAGE##"); $values2 = array($mailfrom, $itemname, $itemlink, $itemimage, $message); $json1 = array_combine($tags1, $values1); $json2 = array_combine($tags2, $values2); $json = json_encode($json1, $json2); print_r($json); print_r(json_decode($json));

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.00016.38
8.3.50.0090.01217.92
8.3.40.0060.00918.69
8.3.30.0120.00318.44
8.3.20.0080.00020.13
8.3.10.0040.00423.58
8.3.00.0040.00419.85
8.2.180.0120.00918.29
8.2.170.0070.00722.96
8.2.160.0180.00020.34
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0060.00320.77
8.2.120.0040.00426.35
8.2.110.0080.00019.02
8.2.100.0030.00917.83
8.2.90.0080.00018.85
8.2.80.0000.00917.97
8.2.70.0040.00417.37
8.2.60.0000.00817.80
8.2.50.0050.00318.07
8.2.40.0030.00520.97
8.2.30.0040.00420.51
8.2.20.0000.01017.80
8.2.10.0000.00818.07
8.2.00.0000.00818.17
8.1.280.0100.00725.92
8.1.270.0060.00318.86
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0040.00423.64
8.1.230.0060.00620.85
8.1.220.0000.00717.74
8.1.210.0030.00618.77
8.1.200.0060.00317.35
8.1.190.0000.00817.66
8.1.180.0060.00318.10
8.1.170.0040.00418.50
8.1.160.0000.00720.66
8.1.150.0000.00818.92
8.1.140.0040.00419.44
8.1.130.0030.00317.68
8.1.120.0070.00017.45
8.1.110.0000.00717.41
8.1.100.0040.00417.46
8.1.90.0000.00717.49
8.1.80.0030.00517.32
8.1.70.0040.00417.33
8.1.60.0000.00817.48
8.1.50.0040.00417.57
8.1.40.0110.00017.56
8.1.30.0030.00617.57
8.1.20.0030.00517.70
8.1.10.0050.00317.44
8.1.00.0000.00817.48
8.0.300.0000.00718.77
8.0.290.0060.00316.75
8.0.280.0000.00718.44
8.0.270.0040.00417.29
8.0.260.0060.00018.31
8.0.250.0000.00717.00
8.0.240.0040.00417.03
8.0.230.0000.00716.98
8.0.220.0000.00816.95
8.0.210.0070.00016.98
8.0.200.0060.00017.07
8.0.190.0000.00716.97
8.0.180.0070.00016.88
8.0.170.0040.00416.91
8.0.160.0000.00717.05
8.0.150.0000.00816.93
8.0.140.0070.00016.78
8.0.130.0000.00613.39
8.0.120.0080.00016.90
8.0.110.0070.00016.78
8.0.100.0040.00416.86
8.0.90.0000.00716.81
8.0.80.0130.00617.01
8.0.70.0050.00216.94
8.0.60.0050.00316.73
8.0.50.0020.00516.98
8.0.30.0070.01317.15
8.0.20.0090.01117.40
8.0.10.0050.00216.88
8.0.00.0090.01016.81
7.4.330.0050.00016.85
7.4.320.0000.00716.39
7.4.300.0040.00416.48
7.4.290.0040.00416.53
7.4.280.0030.00616.51
7.4.270.0000.00716.39
7.4.260.0040.00416.48
7.4.250.0000.00716.57
7.4.240.0060.00116.49
7.4.230.0030.00316.49
7.4.220.0080.00816.44
7.4.210.0120.00316.45
7.4.200.0000.00716.60
7.4.160.0080.00816.45
7.4.150.0040.01217.40
7.4.140.0100.00817.86
7.4.130.0060.01116.39
7.4.120.0110.00716.50
7.4.110.0150.00616.60
7.4.100.0030.01516.42
7.4.90.0130.00316.43
7.4.80.0100.01019.39
7.4.70.0200.00516.41
7.4.60.0070.01016.47
7.4.50.0070.01016.31
7.4.40.0060.01216.47
7.4.30.0030.01416.29
7.4.00.0070.00915.10
7.3.330.0030.00313.09
7.3.320.0030.00313.12
7.3.310.0050.00216.22
7.3.300.0030.00616.30
7.3.290.0060.01016.22
7.3.280.0050.01016.27
7.3.270.0170.01817.40
7.3.260.0120.00616.31
7.3.240.0080.01016.34
7.3.230.0080.00816.39
7.3.210.0000.01716.28
7.3.200.0060.01516.21
7.3.190.0060.01016.20
7.3.180.0040.01416.22
7.3.170.0100.00616.27
7.3.160.0090.00616.25
7.3.120.0070.01114.46
7.3.110.0090.00614.73
7.3.100.0040.01414.98
7.3.90.0080.00814.68
7.3.80.0000.01514.64
7.3.70.0110.00414.86
7.3.60.0030.00914.72
7.3.50.0070.01014.73
7.3.40.0100.00714.75
7.3.30.0080.00414.54
7.3.20.0080.00316.32
7.3.10.0060.00616.64
7.3.00.0090.00616.54
7.2.330.0090.00916.57
7.2.320.0160.00316.24
7.2.310.0100.00716.27
7.2.300.0130.00816.56
7.2.290.0060.01216.26
7.2.250.0080.00815.14
7.2.240.0060.01214.87
7.2.230.0090.00914.84
7.2.220.0120.00314.83
7.2.210.0070.01114.88
7.2.200.0090.00615.01
7.2.190.0070.01015.00
7.2.180.0070.01015.05
7.2.170.0000.01615.00
7.2.60.0000.01516.18
7.2.00.0040.01119.24
7.1.330.0030.01115.76
7.1.320.0030.00715.88
7.1.310.0090.00615.89
7.1.300.0040.01115.75
7.1.290.0060.01215.66
7.1.280.0070.00315.80
7.1.270.0150.00315.58
7.1.260.0000.01415.64
7.1.200.0110.00715.79
7.1.100.0000.01217.66
7.1.70.0040.00417.29
7.1.60.0160.01019.13
7.1.50.0070.01416.63
7.1.00.0030.07722.31
7.0.200.0000.00816.83
7.0.90.0400.04719.89
7.0.80.0300.04319.95
7.0.70.0100.07719.89
7.0.60.0370.08319.87
7.0.50.0100.08020.15
7.0.40.0100.07720.17
7.0.30.0070.05020.19
7.0.20.0130.08020.10
7.0.10.0070.08020.07
7.0.00.0070.04720.13
5.6.280.0030.03021.09
5.6.240.0100.04720.69
5.6.230.0000.04720.63
5.6.220.0030.08320.68
5.6.210.0070.08720.75
5.6.200.0100.07320.95
5.6.190.0070.08721.08
5.6.180.0070.06320.96
5.6.170.0030.07021.00
5.6.160.0100.07320.96
5.6.150.0100.07021.00
5.6.140.0070.08021.00
5.6.130.0100.07021.05
5.6.120.0070.08021.11
5.6.110.0170.06021.06
5.6.100.0030.08320.93
5.6.90.0130.07021.09
5.6.80.0070.04720.43
5.6.70.0100.07720.40
5.6.60.0030.08020.39
5.6.50.0130.07320.48
5.6.40.0200.06320.52
5.6.30.0130.07020.46
5.6.20.0070.07320.37
5.6.10.0000.08720.39
5.6.00.0030.07020.39
5.5.380.0030.04720.42
5.5.370.0030.05720.42
5.5.360.0070.05020.34
5.5.350.0030.06720.41
5.5.340.0200.05320.86
5.5.330.0030.08020.64
5.5.320.0130.07720.89
5.5.310.0100.05720.87
5.5.300.0100.08020.91
5.5.290.0070.08320.86
5.5.280.0070.08320.83
5.5.270.0070.05720.90
5.5.260.0070.08320.92
5.5.250.0030.06320.45
5.5.240.0130.07020.09
5.5.230.0100.08320.25
5.5.220.0070.04320.18
5.5.210.0070.06020.17
5.5.200.0100.07020.19
5.5.190.0070.06020.16
5.5.180.0070.08320.22
5.5.160.0100.07320.18
5.5.150.0130.05720.14
5.5.140.0100.05720.23
5.5.130.0030.05020.27
5.5.120.0070.07019.99
5.5.110.0070.07720.24
5.5.100.0070.07720.12
5.5.90.0030.04720.05
5.5.80.0070.06319.93
5.5.70.0100.07720.06
5.5.60.0070.07020.05
5.5.50.0070.06720.15
5.5.40.0030.08320.08
5.5.30.0030.04019.96
5.5.20.0170.04320.11
5.5.10.0130.06020.04
5.5.00.0100.06019.99

preferences:
52.84 ms | 401 KiB | 5 Q