3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( array("sku" => "101400", "color" => "black", "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.40.0110.00718.54
8.3.30.0030.01020.26
8.3.20.0030.00520.21
8.3.10.0090.00020.96
8.3.00.0080.00022.43
8.2.170.0110.00422.96
8.2.160.0170.00021.97
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00420.75
8.2.110.0060.00321.03
8.2.100.0070.00417.78
8.2.90.0040.00419.26
8.2.80.0040.00417.97
8.2.70.0040.00417.49
8.2.60.0000.00817.91
8.2.50.0090.00018.07
8.2.40.0070.00018.21
8.2.30.0040.00419.50
8.2.20.0000.00917.54
8.2.10.0050.00217.74
8.2.00.0040.00417.60
8.1.270.0090.00023.99
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0070.00423.70
8.1.230.0110.00020.82
8.1.220.0080.00018.77
8.1.210.0030.00520.78
8.1.200.0000.00817.22
8.1.190.0080.00017.39
8.1.180.0030.00518.10
8.1.170.0080.00018.59
8.1.160.0040.00418.84
8.1.150.0040.00418.58
8.1.140.0040.00417.39
8.1.130.0030.00317.74
8.1.120.0040.00417.38
8.1.110.0050.00517.43
8.1.100.0040.00417.41
8.1.90.0000.00817.43
8.1.80.0040.00417.30
8.1.70.0030.00317.39
8.1.60.0000.00817.55
8.1.50.0000.00717.46
8.1.40.0000.00717.33
8.1.30.0000.00817.41
8.1.20.0000.00817.64
8.1.10.0080.00017.47
8.1.00.0030.00517.40
8.0.300.0000.00719.94
8.0.290.0040.00417.05
8.0.280.0030.00318.25
8.0.270.0030.00317.11
8.0.260.0070.00016.75
8.0.250.0030.00316.93
8.0.240.0060.00316.77
8.0.230.0030.00316.80
8.0.220.0000.00616.76
8.0.210.0040.00416.66
8.0.200.0040.00416.76
8.0.190.0000.00716.86
8.0.180.0040.00416.84
8.0.170.0070.00016.79
8.0.160.0000.00716.85
8.0.150.0030.00316.75
8.0.140.0050.00216.79
8.0.130.0050.00013.24
8.0.120.0040.00416.80
8.0.110.0070.00016.79
8.0.100.0050.00216.68
8.0.90.0000.00716.70
8.0.80.0070.00716.82
8.0.70.0040.00416.71
8.0.60.0040.00416.80
8.0.50.0050.00216.87
8.0.30.0110.01016.88
8.0.20.0120.01017.40
8.0.10.0000.00716.93
8.0.00.0120.00716.71
7.4.330.0040.00415.04
7.4.320.0030.00316.39
7.4.300.0040.00416.44
7.4.290.0030.00316.51
7.4.280.0070.00016.45
7.4.270.0030.00316.43
7.4.260.0000.00513.20
7.4.250.0070.00016.37
7.4.240.0060.00116.44
7.4.230.0040.00416.39
7.4.220.0120.00616.58
7.4.210.0080.00716.50
7.4.200.0070.00016.54
7.4.190.0030.00316.25
7.4.160.0090.00616.50
7.4.150.0140.00317.40
7.4.140.0150.00217.86
7.4.130.0120.00516.35
7.4.120.0090.00916.48
7.4.110.0090.00916.31
7.4.100.0100.00716.39
7.4.90.0090.00916.48
7.4.80.0060.01019.39
7.4.70.0080.00816.43
7.4.60.0030.01516.37
7.4.50.0060.00316.20
7.4.40.0030.00622.77
7.4.30.0030.01616.36
7.4.00.0060.01015.12
7.3.330.0060.00012.90
7.3.320.0000.00513.01
7.3.310.0060.00016.01
7.3.300.0070.00015.98
7.3.290.0030.01016.16
7.3.280.0090.00816.14
7.3.270.0070.01017.40
7.3.260.0070.01018.24
7.3.250.0100.00816.27
7.3.240.0060.01216.32
7.3.230.0130.00616.39
7.3.210.0090.00616.26
7.3.200.0100.01319.39
7.3.190.0150.00716.41
7.3.180.0040.01116.16
7.3.170.0080.00816.27
7.3.160.0140.00316.46
7.3.120.0070.00314.57
7.3.10.0140.00016.53
7.3.00.0100.00316.54
7.2.330.0070.01016.32
7.2.320.0110.00716.56
7.2.310.0100.00616.54
7.2.300.0030.01316.45
7.2.290.0070.01016.55
7.2.130.0070.00316.45
7.2.120.0070.00716.42
7.2.110.0030.00916.78
7.2.100.0060.01416.78
7.2.90.0170.00716.72
7.2.80.0050.00916.67
7.2.70.0070.00716.77
7.2.60.0130.00016.75
7.2.50.0070.00716.67
7.2.40.0100.00316.81
7.2.30.0060.00616.50
7.2.20.0070.00716.66
7.2.10.0030.01316.48
7.2.00.0110.00317.85
7.1.250.0060.00915.66
7.1.100.0040.01118.17
7.1.70.0070.00316.92
7.1.60.0090.01219.17
7.1.50.0090.01516.80
7.1.00.0030.07722.48
7.0.200.0200.00714.62
7.0.140.0070.07321.96
7.0.90.0130.07719.79
7.0.80.0100.08319.79
7.0.70.0300.05319.94
7.0.60.0100.04319.88
7.0.50.0400.07020.38
7.0.40.0030.08720.11
7.0.30.0070.08320.18
7.0.20.0070.07720.14
7.0.10.0100.07720.17
7.0.00.0070.08320.13
5.6.280.0070.07021.10
5.6.240.0030.09020.64
5.6.230.0030.09020.45
5.6.220.0070.05720.56
5.6.210.0130.07720.54
5.6.200.0200.06321.08
5.6.190.0130.07321.07
5.6.180.0070.08021.09
5.6.170.0130.07321.05
5.6.160.0030.08021.04
5.6.150.0030.07321.00
5.6.140.0070.04720.93
5.6.130.0100.08021.04
5.6.120.0000.09021.03
5.6.110.0100.04721.09
5.6.100.0070.06021.05
5.6.90.0070.08021.05
5.6.80.0030.08720.49
5.6.70.0000.08320.30
5.6.60.0130.07020.41
5.6.50.0070.09020.54
5.6.40.0100.07720.45
5.6.30.0030.07320.37
5.6.20.0070.08320.39
5.6.10.0130.06320.36
5.6.00.0170.06720.38
5.5.380.0030.08320.45
5.5.370.0100.07720.36
5.5.360.0030.04720.29
5.5.350.0070.08320.28
5.5.340.0070.05320.88
5.5.330.0200.07020.86
5.5.320.0100.08020.83
5.5.310.0070.05020.89
5.5.300.0200.07320.80
5.5.290.0030.08020.91
5.5.280.0070.08020.92
5.5.270.0170.03720.80
5.5.260.0030.04720.91
5.5.250.0070.08020.64
5.5.240.0130.07320.25
5.5.230.0130.07020.13
5.5.220.0170.07320.22
5.5.210.0100.04320.17
5.5.200.0130.07020.21
5.5.190.0130.07020.10
5.5.180.0100.06020.14
5.5.160.0170.03720.23
5.5.150.0030.05320.14
5.5.140.0130.07720.20
5.5.130.0130.06320.24
5.5.120.0030.07020.16
5.5.110.0030.05720.07
5.5.100.0030.08020.11
5.5.90.0130.07320.07
5.5.80.0070.07320.15
5.5.70.0070.08020.05
5.5.60.0000.05720.04
5.5.50.0100.07020.02
5.5.40.0030.07720.05
5.5.30.0070.08320.02
5.5.20.0100.07320.04
5.5.10.0170.04320.03
5.5.00.0070.06320.08
5.4.450.0070.08319.42
5.4.440.0170.08019.30
5.4.430.0030.07319.46
5.4.420.0030.04019.36
5.4.410.0030.07719.16
5.4.400.0070.08319.03
5.4.390.0070.05318.90
5.4.380.0130.07019.11
5.4.370.0130.07019.14
5.4.360.0070.08018.80
5.4.350.0100.07019.07
5.4.340.0200.06319.14
5.4.320.0100.05019.07
5.4.310.0030.04719.02
5.4.300.0070.07318.97
5.4.290.0170.07019.11
5.4.280.0200.05719.04
5.4.270.0030.08019.22
5.4.260.0070.05318.96
5.4.250.0070.07719.11
5.4.240.0100.07319.01
5.4.230.0130.06019.02
5.4.220.0000.07318.97
5.4.210.0130.06719.13
5.4.200.0100.05318.89
5.4.190.0200.06718.93
5.4.180.0070.05719.06
5.4.170.0130.07018.93
5.4.160.0030.08018.76
5.4.150.0030.08019.15
5.4.140.0030.05016.24
5.4.130.0000.05016.21
5.4.120.0170.06016.27
5.4.110.0130.06716.43
5.4.100.0200.06016.34
5.4.90.0170.05716.22
5.4.80.0070.05016.24
5.4.70.0100.07316.31
5.4.60.0100.04016.33
5.4.50.0100.04316.17
5.4.40.0030.04016.46
5.4.30.0070.05716.23
5.4.20.0070.04316.40
5.4.10.0070.04016.32
5.4.00.0070.07015.72
5.3.290.0030.04714.51
5.3.280.0070.04314.55
5.3.270.0070.07314.59
5.3.260.0070.06014.51
5.3.250.0100.07314.48
5.3.240.0100.03314.46
5.3.230.0100.07314.58
5.3.220.0070.04314.52
5.3.210.0030.05014.47
5.3.200.0030.06314.42
5.3.190.0100.04314.57
5.3.180.0070.03314.52
5.3.170.0170.08314.41
5.3.160.0100.07314.52
5.3.150.0100.07014.56
5.3.140.0100.07014.54
5.3.130.0100.07014.48
5.3.120.0100.07314.53
5.3.110.0030.07714.45
5.3.100.0070.07314.02
5.3.90.0130.07013.92
5.3.80.0030.07713.78
5.3.70.0100.06013.77
5.3.60.0030.05013.81
5.3.50.0000.07713.90
5.3.40.0070.06013.87
5.3.30.0070.06313.91
5.3.20.0030.07313.67
5.3.10.0030.06313.65
5.3.00.0070.04713.54
5.2.170.0100.04011.00
5.2.160.0030.04311.13
5.2.150.0130.05311.16
5.2.140.0070.03011.18
5.2.130.0070.05711.11
5.2.120.0030.06011.01
5.2.110.0100.05310.88
5.2.100.0100.04311.12
5.2.90.0100.06711.15
5.2.80.0070.06011.04
5.2.70.0070.06311.14
5.2.60.0030.03011.11
5.2.50.0030.06710.98
5.2.40.0070.06011.00
5.2.30.0070.03710.99
5.2.20.0030.05310.81
5.2.10.0030.05010.89
5.2.00.0130.04010.76
5.1.60.0000.05310.03
5.1.50.0070.0279.83
5.1.40.0030.0339.80
5.1.30.0030.03710.23
5.1.20.0000.03710.25
5.1.10.0130.04310.13
5.1.00.0030.05710.06
5.0.50.0170.0278.38
5.0.40.0100.0338.47
5.0.30.0100.0638.21
5.0.20.0000.0508.29
5.0.10.0070.0278.26
5.0.00.0130.0438.14
4.4.90.0000.0375.75
4.4.80.0000.0375.73
4.4.70.0000.0335.81
4.4.60.0030.0335.83
4.4.50.0000.0375.73
4.4.40.0000.0535.72
4.4.30.0000.0275.72
4.4.20.0030.0335.90
4.4.10.0030.0335.79
4.4.00.0000.0575.87
4.3.110.0070.0335.68
4.3.100.0030.0135.66
4.3.90.0000.0205.66
4.3.80.0030.0375.68
4.3.70.0030.0335.72
4.3.60.0030.0305.73
4.3.50.0000.0335.67
4.3.40.0070.0475.64
4.3.30.0070.0275.59
4.3.20.0000.0335.59
4.3.10.0070.0305.59
4.3.00.0000.0375.59

preferences:
43.74 ms | 400 KiB | 5 Q