3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( array("type" => "shirt", "artnr" => "101400", "kleur" => "5000", "maten" => array(12 => "152", 2 => "164")), array("type" => "short", "artnr" => "1930", "kleur" => "1000", "maten" => array(12 => "152", 2 => "164"),) ); $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.0090.00918.54
8.3.30.0070.00720.33
8.3.20.0000.00720.30
8.3.10.0080.00021.10
8.3.00.0090.00022.39
8.2.170.0100.01022.96
8.2.160.0120.00622.13
8.2.150.0000.01224.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0050.00320.82
8.2.110.0030.00619.20
8.2.100.0040.00817.78
8.2.90.0000.00819.05
8.2.80.0000.00717.97
8.2.70.0030.00617.50
8.2.60.0040.00417.75
8.2.50.0060.00318.07
8.2.40.0080.00017.88
8.2.30.0000.00819.43
8.2.20.0000.00717.52
8.2.10.0040.00417.78
8.2.00.0050.00217.73
8.1.270.0030.00523.99
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0080.00023.88
8.1.230.0110.00020.90
8.1.220.0040.00418.77
8.1.210.0060.00320.82
8.1.200.0060.00317.00
8.1.190.0050.00317.41
8.1.180.0080.00018.10
8.1.170.0040.00418.30
8.1.160.0060.00318.81
8.1.150.0000.00718.57
8.1.140.0040.00417.37
8.1.130.0050.00317.70
8.1.120.0040.00417.40
8.1.110.0070.00317.29
8.1.100.0080.00017.28
8.1.90.0000.00717.38
8.1.80.0000.00717.27
8.1.70.0000.00717.36
8.1.60.0030.00617.57
8.1.50.0040.00417.48
8.1.40.0040.00417.42
8.1.30.0000.00817.42
8.1.20.0000.00817.50
8.1.10.0040.00417.38
8.1.00.0040.00417.36
8.0.300.0040.00419.90
8.0.290.0000.00817.04
8.0.280.0000.00718.28
8.0.270.0070.00017.15
8.0.260.0050.00216.79
8.0.250.0000.00616.89
8.0.240.0000.00816.76
8.0.230.0030.00316.74
8.0.220.0060.00016.79
8.0.210.0070.00016.80
8.0.200.0040.00416.73
8.0.190.0030.00316.85
8.0.180.0000.00816.77
8.0.170.0000.00816.77
8.0.160.0070.00016.91
8.0.150.0000.00816.61
8.0.140.0000.00716.78
8.0.130.0060.00013.27
8.0.120.0000.00816.67
8.0.110.0040.00416.72
8.0.100.0040.00416.81
8.0.90.0050.00316.64
8.0.80.0040.01116.77
8.0.70.0040.00416.64
8.0.60.0000.00716.63
8.0.50.0040.00416.77
8.0.30.0120.01016.67
8.0.20.0120.01017.40
8.0.10.0000.00816.90
8.0.00.0100.00816.74
7.4.330.0060.00014.93
7.4.320.0050.00216.36
7.4.300.0030.00316.45
7.4.290.0000.00716.54
7.4.280.0040.00416.52
7.4.270.0050.00316.45
7.4.260.0000.00513.17
7.4.250.0040.00416.30
7.4.240.0040.00416.58
7.4.230.0040.00416.45
7.4.220.0060.01216.39
7.4.210.0090.00816.47
7.4.200.0040.00416.48
7.4.190.0060.00016.34
7.4.160.0140.00316.36
7.4.150.0150.00317.40
7.4.140.0070.01017.86
7.4.130.0100.00816.38
7.4.120.0070.00916.31
7.4.110.0120.00616.52
7.4.100.0100.01016.54
7.4.90.0110.00716.40
7.4.80.0030.01319.39
7.4.70.0100.00716.35
7.4.60.0090.00916.48
7.4.50.0030.00616.27
7.4.40.0080.00422.77
7.4.30.0130.00716.23
7.4.10.0060.01014.85
7.4.00.0060.00915.02
7.3.330.0000.00613.05
7.3.320.0050.00012.93
7.3.310.0000.00716.07
7.3.300.0030.00315.97
7.3.290.0050.00816.12
7.3.280.0080.00716.12
7.3.270.0100.00717.40
7.3.260.0160.00718.24
7.3.250.0120.00516.19
7.3.240.0070.01116.15
7.3.230.0110.00716.40
7.3.210.0120.00616.32
7.3.200.0130.00319.39
7.3.190.0230.00316.12
7.3.180.0130.00316.21
7.3.170.0040.01516.27
7.3.160.0090.00616.09
7.3.130.0090.00914.73
7.3.120.0080.00814.79
7.3.110.0050.01314.57
7.3.100.0110.00514.74
7.3.90.0070.00714.68
7.3.80.0050.00614.74
7.3.70.0070.00714.55
7.3.60.0060.00514.54
7.3.50.0080.00814.68
7.3.40.0110.00314.45
7.3.30.0060.00714.53
7.3.20.0090.00716.52
7.3.10.0100.00316.60
7.3.00.0080.00616.54
7.2.330.0030.01416.26
7.2.320.0060.01016.39
7.2.310.0100.01316.39
7.2.300.0030.01316.45
7.2.290.0140.00416.50
7.2.260.0060.01315.01
7.2.250.0030.01514.97
7.2.240.0080.00815.05
7.2.230.0080.00814.89
7.2.220.0080.00514.82
7.2.210.0050.01014.93
7.2.200.0030.00814.98
7.2.190.0060.00614.63
7.2.180.0050.00714.96
7.2.170.0070.00514.75
7.2.160.0080.00314.81
7.2.150.0000.01116.73
7.2.140.0060.00316.71
7.2.130.0050.00916.84
7.2.120.0050.00816.67
7.2.110.0050.00816.70
7.2.100.0110.00416.69
7.2.90.0050.00716.88
7.2.80.0080.00716.88
7.2.70.0060.01016.82
7.2.60.0040.01016.71
7.2.50.0080.00516.72
7.2.40.0080.00716.84
7.2.30.0110.00516.87
7.2.20.0060.00816.73
7.2.10.0060.00716.86
7.2.00.0050.00816.81
7.1.330.0020.01215.72
7.1.320.0070.00515.65
7.1.310.0040.00915.83
7.1.300.0070.00815.62
7.1.290.0040.01215.85
7.1.280.0050.00515.70
7.1.270.0060.00715.66
7.1.260.0050.00915.59
7.1.250.0050.00815.79
7.1.240.0030.00915.74
7.1.230.0110.00415.73
7.1.220.0000.01215.59
7.1.210.0030.01015.72
7.1.200.0090.00315.81
7.1.190.0070.00715.75
7.1.180.0030.01015.70
7.1.170.0070.00715.80
7.1.160.0060.00615.81
7.1.150.0060.00915.74
7.1.140.0070.01015.88
7.1.130.0040.01015.64
7.1.120.0000.01515.69
7.1.110.0080.00815.55
7.1.100.0030.01015.83
7.1.90.0000.01115.89
7.1.80.0100.00315.55
7.1.70.0020.00916.28
7.1.60.0060.01317.49
7.1.50.0050.01316.23
7.1.40.0070.00615.77
7.1.30.0030.01015.91
7.1.20.0000.01215.64
7.1.10.0080.00515.89
7.1.00.0060.02319.11
7.0.330.0030.00915.46
7.0.320.0100.00315.07
7.0.310.0000.01115.22
7.0.300.0000.01015.38
7.0.290.0070.00315.42
7.0.280.0080.00315.23
7.0.270.0030.00815.40
7.0.260.0070.00715.17
7.0.250.0040.01115.54
7.0.240.0040.01115.17
7.0.230.0080.00315.48
7.0.220.0120.00015.26
7.0.210.0030.00915.41
7.0.200.0090.00714.93
7.0.190.0080.00315.30
7.0.180.0030.01015.33
7.0.170.0100.00015.24
7.0.160.0070.00715.25
7.0.150.0090.00315.31
7.0.140.0050.04018.74
7.0.130.0000.01515.15
7.0.120.0000.01015.51
7.0.110.0030.01015.38
7.0.100.0040.00815.38
7.0.90.0130.02217.68
7.0.80.0200.02517.66
7.0.70.0200.02217.61
7.0.60.0210.02217.72
7.0.50.0170.03317.79
7.0.40.0060.02616.91
7.0.30.0110.03616.83
7.0.20.0070.03216.87
7.0.10.0040.02616.87
7.0.00.0050.03016.85
5.6.400.0050.00514.47
5.6.390.0090.00914.50
5.6.380.0090.00614.17
5.6.370.0130.00014.13
5.6.360.0090.00314.46
5.6.350.0030.00914.27
5.6.340.0060.01114.25
5.6.330.0030.01013.99
5.6.320.0070.00714.50
5.6.310.0060.00614.32
5.6.300.0050.00314.48
5.6.290.0060.00614.62
5.6.280.0040.03917.56
5.6.270.0030.01014.17
5.6.260.0030.01014.57
5.6.250.0090.00314.07
5.6.240.0060.02317.44
5.6.230.0060.02817.26
5.6.220.0100.02017.37
5.6.210.0050.02217.48
5.6.200.0030.02517.71
5.6.190.0030.02717.64
5.6.180.0080.01817.58
5.6.170.0070.04417.73
5.6.160.0100.02317.56
5.6.150.0080.02717.50
5.6.140.0060.04617.48
5.6.130.0030.03117.46
5.6.120.0120.04117.62
5.6.110.0140.03717.62
5.6.100.0060.04417.45
5.6.90.0130.04017.55
5.6.80.0080.04117.22
5.6.70.0070.03417.38
5.6.60.0050.02517.27
5.6.50.0030.02717.19
5.6.40.0020.03917.45
5.6.30.0100.03617.24
5.6.20.0070.03517.14
5.6.10.0080.04517.21
5.6.00.0080.03617.32
5.5.380.0030.02517.26
5.5.370.0080.02217.22
5.5.360.0060.02217.34
5.5.350.0080.02217.17
5.5.340.0070.02817.45
5.5.330.0030.02817.46
5.5.320.0050.04817.46
5.5.310.0070.04217.53
5.5.300.0120.03817.34
5.5.290.0070.03617.63
5.5.280.0070.04617.56
5.5.270.0070.03817.38
5.5.260.0090.02217.40
5.5.250.0050.03217.34
5.5.240.0050.02817.19
5.5.230.0060.02917.09
5.5.220.0020.02717.09
5.5.210.0030.03416.96
5.5.200.0090.04317.19
5.5.190.0090.02817.02
5.5.180.0100.02717.19
5.5.170.0070.00313.89
5.5.160.0030.03017.10
5.5.150.0050.02917.16
5.5.140.0110.03817.21
5.5.130.0090.03717.14
5.5.120.0060.03917.08
5.5.110.0070.02717.09
5.5.100.0050.02616.92
5.5.90.0080.04017.01
5.5.80.0080.03717.06
5.5.70.0070.02417.06
5.5.60.0070.03916.95
5.5.50.0030.04317.17
5.5.40.0070.03116.98
5.5.30.0070.02517.13
5.5.20.0080.03417.11
5.5.10.0030.03816.94
5.5.00.0070.04317.02
5.4.450.0070.04416.46
5.4.440.0050.05016.55
5.4.430.0090.04516.47
5.4.420.0030.03216.55
5.4.410.0100.04016.47
5.4.400.0050.04016.22
5.4.390.0030.02716.38
5.4.380.0050.03616.28
5.4.370.0090.03816.23
5.4.360.0020.02716.39
5.4.350.0080.02516.38
5.4.340.0030.04316.38
5.4.330.0080.00013.65
5.4.320.0060.02616.23
5.4.310.0030.03816.36
5.4.300.0090.03716.35
5.4.290.0020.04516.31
5.4.280.0100.03216.44
5.4.270.0050.02516.23
5.4.260.0030.03916.27
5.4.250.0090.02616.35
5.4.240.0050.02516.21
5.4.230.0070.02716.33
5.4.220.0030.02716.31
5.4.210.0050.02316.34
5.4.200.0050.02216.39
5.4.190.0060.02316.21
5.4.180.0100.01816.27
5.4.170.0030.02416.38
5.4.160.0070.03516.27
5.4.150.0070.03016.29
5.4.140.0100.02114.94
5.4.130.0100.03514.94
5.4.120.0020.02314.98
5.4.110.0070.02115.00
5.4.100.0030.03914.96
5.4.90.0060.03815.04
5.4.80.0080.02115.02
5.4.70.0060.03115.02
5.4.60.0080.03714.92
5.4.50.0020.04415.01
5.4.40.0030.02115.02
5.4.30.0040.04014.93
5.4.20.0060.02714.97
5.4.10.0030.04414.92
5.4.00.0030.02514.70
5.3.290.0020.02714.13
5.3.280.0020.03314.13
5.3.270.0050.03014.08
5.3.260.0080.03214.11
5.3.250.0060.02314.10
5.3.240.0120.03314.06
5.3.230.0050.02714.12
5.3.220.0050.03414.09
5.3.210.0050.02914.02
5.3.200.0080.04014.11
5.3.190.0090.03514.09
5.3.180.0060.04114.06
5.3.170.0020.02314.02
5.3.160.0060.02814.02
5.3.150.0100.03514.10
5.3.140.0050.03514.10
5.3.130.0050.03314.09
5.3.120.0020.02814.03
5.3.110.0070.01814.03
5.3.100.0030.04113.82
5.3.90.0070.04013.83
5.3.80.0000.02913.83
5.3.70.0100.02013.79
5.3.60.0020.03313.82
5.3.50.0050.04113.80
5.3.40.0050.03013.77
5.3.30.0050.03313.75
5.3.20.0050.03313.66
5.3.10.0080.01813.53
5.3.00.0080.03513.60
5.2.170.0130.04011.14
5.2.160.0070.06011.20
5.2.150.0070.05011.14
5.2.140.0030.06010.98
5.2.130.0000.04011.11
5.2.120.0100.05710.92
5.2.110.0030.03311.08
5.2.100.0070.03010.93
5.2.90.0030.03011.05
5.2.80.0130.05711.01
5.2.70.0030.05710.93
5.2.60.0030.03310.89
5.2.50.0000.07011.06
5.2.40.0000.03710.96
5.2.30.0030.06310.76
5.2.20.0100.03310.80
5.2.10.0030.04310.80
5.2.00.0000.03310.71
5.1.60.0070.04310.02
5.1.50.0000.0539.87
5.1.40.0030.0539.80
5.1.30.0070.04710.35
5.1.20.0100.02010.26
5.1.10.0030.03310.13
5.1.00.0070.05010.08
5.0.50.0000.0238.38
5.0.40.0030.0438.46
5.0.30.0000.0638.21
5.0.20.0030.0208.24
5.0.10.0030.0378.28
5.0.00.0030.0308.04
4.4.90.0030.0237.08
4.4.80.0030.0337.08
4.4.70.0000.0177.08
4.4.60.0030.0177.08
4.4.50.0030.0377.08
4.4.40.0070.0507.08
4.4.30.0030.0177.08
4.4.20.0070.0307.08
4.4.10.0070.0177.08
4.4.00.0000.0607.08
4.3.110.0000.0177.08
4.3.100.0000.0377.08
4.3.90.0000.0307.08
4.3.80.0000.0237.08
4.3.70.0000.0277.08
4.3.60.0000.0207.08
4.3.50.0030.0207.08
4.3.40.0000.0537.08
4.3.30.0000.0377.08
4.3.20.0030.0337.08
4.3.10.0000.0307.08
4.3.00.0030.0137.08

preferences:
44.5 ms | 400 KiB | 5 Q