3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( array("sku" => "101400-4000", "color" => "green", "Size" => array("12" => "m (= &euro; 19,95)", "2" => "m (= &euro; 19,95)")), array("sku" => "1930-1000", "color" => "black", "Size" => array("6" => " 11628 (= &euro; 11,95)", "3" => "14052 (= &euro; 11,95)", "1" => "m (= &euro; 19,95)", "4" => "l (= &euro; 19,95)"),) ); $output = json_encode($array); print_r($output);

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.0070.00718.18
8.3.50.0230.00521.08
8.3.40.0070.00718.54
8.3.30.0100.00320.18
8.3.20.0050.00320.07
8.3.10.0000.00821.01
8.3.00.0040.00422.34
8.2.180.0090.00916.63
8.2.170.0170.00022.96
8.2.160.0090.00622.16
8.2.150.0030.00524.18
8.2.140.0070.00024.66
8.2.130.0070.00026.16
8.2.120.0080.00020.82
8.2.110.0040.00719.27
8.2.100.0090.00317.78
8.2.90.0000.00819.05
8.2.80.0000.00817.97
8.2.70.0040.00417.50
8.2.60.0000.00817.89
8.2.50.0080.00318.07
8.2.40.0060.00318.03
8.2.30.0050.00219.52
8.2.20.0030.00517.70
8.2.10.0040.00417.55
8.2.00.0040.00417.66
8.1.280.0100.01325.92
8.1.270.0040.00423.99
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0000.00923.84
8.1.230.0040.00720.90
8.1.220.0000.00818.77
8.1.210.0000.00820.80
8.1.200.0030.00617.22
8.1.190.0040.00417.40
8.1.180.0000.00918.10
8.1.170.0050.00318.57
8.1.160.0000.00718.80
8.1.150.0000.00818.55
8.1.140.0040.00417.39
8.1.130.0000.00717.82
8.1.120.0040.00417.43
8.1.110.0070.00417.29
8.1.100.0000.00717.38
8.1.90.0000.00817.40
8.1.80.0040.00417.29
8.1.70.0000.00717.28
8.1.60.0030.00517.49
8.1.50.0070.00017.38
8.1.40.0080.00017.44
8.1.30.0040.00417.62
8.1.20.0020.00517.50
8.1.10.0040.00417.31
8.1.00.0080.00017.46
8.0.300.0040.00419.77
8.0.290.0080.00017.04
8.0.280.0000.00718.30
8.0.270.0000.00717.18
8.0.260.0030.00316.71
8.0.250.0000.00716.82
8.0.240.0000.00816.84
8.0.230.0000.00716.91
8.0.220.0000.00716.87
8.0.210.0030.00316.87
8.0.200.0060.00016.80
8.0.190.0000.00716.89
8.0.180.0000.00716.84
8.0.170.0080.00016.82
8.0.160.0040.00416.87
8.0.150.0040.00416.81
8.0.140.0000.00716.79
8.0.130.0000.00613.27
8.0.120.0040.00416.70
8.0.110.0070.00016.65
8.0.100.0040.00416.89
8.0.90.0000.00716.63
8.0.80.0060.01316.79
8.0.70.0070.00016.90
8.0.60.0000.00716.82
8.0.50.0020.00516.81
8.0.30.0070.01017.03
8.0.20.0120.00617.40
8.0.10.0040.00416.75
8.0.00.0110.00616.77
7.4.330.0050.00215.01
7.4.320.0000.00716.51
7.4.300.0070.00016.60
7.4.290.0030.00316.44
7.4.280.0030.00316.36
7.4.270.0020.00516.42
7.4.260.0070.00016.55
7.4.250.0040.00416.30
7.4.240.0040.00316.46
7.4.230.0070.00016.61
7.4.220.0140.00416.39
7.4.210.0060.00916.38
7.4.200.0070.00016.56
7.4.190.0050.00216.25
7.4.160.0070.01116.47
7.4.150.0150.00317.40
7.4.140.0150.00117.86
7.4.130.0060.01216.38
7.4.120.0150.00616.46
7.4.110.0180.00016.54
7.4.100.0100.00716.31
7.4.90.0040.01416.45
7.4.80.0130.00319.39
7.4.70.0100.00716.44
7.4.60.0070.01116.37
7.4.50.0000.00916.35
7.4.40.0090.00622.77
7.4.30.0060.01116.45
7.4.00.0040.01414.82
7.3.330.0020.00213.07
7.3.320.0000.00513.06
7.3.310.0050.00316.21
7.3.300.0070.00016.18
7.3.290.0090.00616.25
7.3.280.0020.01316.19
7.3.270.0100.00717.40
7.3.260.0090.00918.24
7.3.250.0080.01016.49
7.3.240.0120.00916.36
7.3.230.0100.00716.39
7.3.210.0100.00716.19
7.3.200.0150.00319.39
7.3.190.0090.01116.43
7.3.180.0100.01016.18
7.3.170.0080.00816.49
7.3.160.0070.01116.43
7.3.120.0130.00314.77
7.2.330.0100.00716.61
7.2.320.0080.01116.25
7.2.310.0090.00916.46
7.2.300.0060.01516.21
7.2.290.0030.01316.50
7.1.70.0050.00216.73
7.1.60.0030.00917.31
7.1.50.0030.01916.89
7.1.00.0000.05022.46
7.0.200.0060.01016.66
7.0.140.0030.07322.19
7.0.90.0700.07719.98
7.0.80.0500.07319.84
7.0.70.0600.05019.84
7.0.60.0600.07020.01
7.0.50.0370.06320.30
7.0.40.0170.07020.15
7.0.30.0130.07719.99
7.0.20.0000.08720.04
7.0.10.0000.05320.17
7.0.00.0070.08020.00
5.6.280.0000.07320.89
5.6.240.0130.07720.51
5.6.230.0030.07320.55
5.6.220.0100.08020.67
5.6.210.0130.07320.75
5.6.200.0030.05020.95
5.6.190.0070.08321.03
5.6.180.0000.05721.07
5.6.170.0100.07721.01
5.6.160.0070.08021.01
5.6.150.0200.07320.95
5.6.140.0030.04721.11
5.6.130.0100.04721.01
5.6.120.0070.07021.10
5.6.110.0070.04321.12
5.6.100.0100.04321.15
5.6.90.0000.06021.11
5.6.80.0100.05320.43
5.6.70.0100.07720.50
5.6.60.0230.04720.32
5.6.50.0100.05020.43
5.6.40.0030.06720.40
5.6.30.0000.08720.36
5.6.20.0170.06020.48
5.6.10.0070.06020.44
5.6.00.0030.07320.26
5.5.380.0030.08720.37
5.5.370.0070.07320.45
5.5.360.0100.06320.53
5.5.350.0100.07720.41
5.5.340.0100.07320.87
5.5.330.0030.05020.86
5.5.320.0070.06720.84
5.5.310.0170.06720.79
5.5.300.0030.08020.92
5.5.290.0130.06720.77
5.5.280.0170.08020.89
5.5.270.0130.07720.75
5.5.260.0030.09020.75
5.5.250.0130.07320.67
5.5.240.0030.07720.27
5.5.230.0200.05320.16
5.5.220.0100.07320.15
5.5.210.0100.07320.11
5.5.200.0030.05020.21
5.5.190.0130.06720.21
5.5.180.0070.05320.27
5.5.160.0100.06720.09
5.5.150.0100.08019.98
5.5.140.0100.07320.27
5.5.130.0070.08020.23
5.5.120.0000.05020.25
5.5.110.0070.07320.11
5.5.100.0030.07320.12
5.5.90.0000.07319.96
5.5.80.0030.08320.01
5.5.70.0030.08020.06
5.5.60.0100.07020.00
5.5.50.0100.07720.14
5.5.40.0070.04720.03
5.5.30.0100.08020.05
5.5.20.0030.05019.99
5.5.10.0000.06720.09
5.5.00.0170.07019.95
5.4.450.0100.07319.47
5.4.440.0030.08319.16
5.4.430.0070.07319.46
5.4.420.0030.07719.36
5.4.410.0070.07019.22
5.4.400.0070.07719.12
5.4.390.0030.05019.24
5.4.380.0170.06319.04
5.4.370.0000.08719.14
5.4.360.0100.06719.05
5.4.350.0030.07719.02
5.4.340.0130.05019.11
5.4.320.0100.04319.12
5.4.310.0100.07018.98
5.4.300.0100.06719.04
5.4.290.0230.04019.07
5.4.280.0070.06719.12
5.4.270.0070.03719.14
5.4.260.0030.07319.12
5.4.250.0070.06719.11
5.4.240.0070.04719.11
5.4.230.0000.06319.02
5.4.220.0030.07319.24
5.4.210.0100.07319.14
5.4.200.0030.04719.12
5.4.190.0070.06719.10
5.4.180.0070.07718.77
5.4.170.0000.07319.02
5.4.160.0070.07318.88
5.4.150.0030.05319.00
5.4.140.0170.06716.07
5.4.130.0100.04716.23
5.4.120.0070.04716.27
5.4.110.0070.04716.40
5.4.100.0030.08016.21
5.4.90.0200.06016.36
5.4.80.0030.04316.46
5.4.70.0000.04016.20
5.4.60.0130.02716.23
5.4.50.0100.06716.30
5.4.40.0100.03016.35
5.4.30.0070.03716.40
5.4.20.0100.06716.41
5.4.10.0070.07316.17
5.4.00.0070.06015.69
5.3.290.0030.08014.63
5.3.280.0100.04014.45
5.3.270.0170.06714.60
5.3.260.0070.07314.54
5.3.250.0100.06714.45
5.3.240.0100.07314.45
5.3.230.0130.06014.59
5.3.220.0070.05014.55
5.3.210.0100.06714.56
5.3.200.0100.07014.51
5.3.190.0030.07714.53
5.3.180.0130.06314.40
5.3.170.0100.04714.47
5.3.160.0100.06314.55
5.3.150.0070.04014.50
5.3.140.0070.05714.55
5.3.130.0100.06714.56
5.3.120.0070.03714.54
5.3.110.0030.03714.41
5.3.100.0030.04714.02
5.3.90.0030.07313.86
5.3.80.0070.07013.77
5.3.70.0070.07714.01
5.3.60.0070.06713.95
5.3.50.0070.07013.80
5.3.40.0030.04013.80
5.3.30.0030.03013.89
5.3.20.0100.07013.70
5.3.10.0000.07713.53
5.3.00.0130.06713.59
5.2.170.0070.03011.14
5.2.160.0030.06311.00
5.2.150.0030.04310.99
5.2.140.0000.03011.13
5.2.130.0000.06711.09
5.2.120.0130.01711.13
5.2.110.0130.05710.89
5.2.100.0000.05711.09
5.2.90.0070.03711.08
5.2.80.0000.06711.09
5.2.70.0000.05011.08
5.2.60.0030.04310.87
5.2.50.0000.06310.88
5.2.40.0130.05310.82
5.2.30.0070.05010.83
5.2.20.0100.05710.95
5.2.10.0030.03710.77
5.2.00.0070.06010.63
5.1.60.0100.0479.97
5.1.50.0070.0439.82
5.1.40.0170.03710.01
5.1.30.0100.05010.25
5.1.20.0070.04710.35
5.1.10.0000.04010.08
5.1.00.0070.05710.10
5.0.50.0070.0408.53
5.0.40.0030.0438.49
5.0.30.0000.0608.27
5.0.20.0000.0438.03
5.0.10.0030.0478.17
5.0.00.0000.0437.99
4.4.90.0030.0336.84
4.4.80.0070.0306.84
4.4.70.0070.0306.84
4.4.60.0070.0206.84
4.4.50.0030.0176.84
4.4.40.0030.0536.84
4.4.30.0030.0206.84
4.4.20.0030.0236.84
4.4.10.0000.0376.84
4.4.00.0030.0536.84
4.3.110.0000.0376.84
4.3.100.0030.0336.84
4.3.90.0030.0336.84
4.3.80.0030.0376.84
4.3.70.0070.0276.84
4.3.60.0000.0306.84
4.3.50.0100.0306.84
4.3.40.0070.0476.84
4.3.30.0030.0336.84
4.3.20.0000.0206.84
4.3.10.0100.0276.84
4.3.00.0000.0376.84

preferences:
42.27 ms | 401 KiB | 5 Q