3v4l.org

run code in 300+ PHP versions simultaneously
<?php $User = array( 'Name' => "Hans-Peterµµ", 'Contacts' => array(1, 2, 3, 4, 5, 6, 7, 42), 'Active' => 1 ); $J = html_entity_decode(json_encode(array_utf8_encode($User))); echo $J; function array_utf8_encode($Array) { foreach($Array as &$Val) { if(is_array($Val)) { $Val = array_utf8_encode($Val); } elseif(is_string($Val)) { $Val = mb_convert_encoding(htmlentities($Val, 'UTF-8')); } } return $Array; }

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.0100.00718.73
8.3.30.0110.00318.85
8.3.20.0070.00020.16
8.3.10.0040.00420.56
8.3.00.0050.00319.25
8.2.170.0090.00622.96
8.2.160.0100.00720.38
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0040.00421.04
8.2.110.0030.00620.38
8.2.100.0040.00818.22
8.2.90.0040.00419.00
8.2.80.0060.00317.97
8.2.70.0000.00817.38
8.2.60.0090.00017.93
8.2.50.0060.00318.07
8.2.40.0090.00317.70
8.2.30.0000.00819.52
8.2.20.0000.00817.84
8.2.10.0030.00518.14
8.2.00.0030.00517.93
8.1.270.0060.00323.97
8.1.260.0060.00326.35
8.1.250.0070.00028.09
8.1.240.0090.00023.88
8.1.230.0070.00319.11
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0070.00417.23
8.1.190.0040.00417.23
8.1.180.0060.00318.10
8.1.170.0000.00818.52
8.1.160.0000.00722.00
8.1.150.0000.00718.91
8.1.140.0060.00317.47
8.1.130.0030.00317.72
8.1.120.0040.00417.49
8.1.110.0050.00317.39
8.1.100.0040.00417.45
8.1.90.0000.00717.38
8.1.80.0050.00217.38
8.1.70.0000.00717.44
8.1.60.0000.00917.59
8.1.50.0040.00417.50
8.1.40.0050.00317.56
8.1.30.0000.00817.64
8.1.20.0000.00717.56
8.1.10.0000.00717.53
8.1.00.0000.00817.51
8.0.300.0000.00818.77
8.0.290.0000.00716.75
8.0.280.0050.00318.47
8.0.270.0000.00717.28
8.0.260.0000.00617.33
8.0.250.0040.00416.91
8.0.240.0000.00717.05
8.0.230.0030.00316.91
8.0.220.0000.00716.86
8.0.210.0000.00716.96
8.0.200.0000.00717.01
8.0.190.0030.00817.08
8.0.180.0030.00317.02
8.0.170.0030.00616.91
8.0.160.0030.00617.04
8.0.150.0000.01016.85
8.0.140.0060.00316.86
8.0.130.0000.00513.45
8.0.120.0000.00816.93
8.0.110.0050.00316.95
8.0.100.0000.00817.02
8.0.90.0000.00716.80
8.0.80.0120.00316.92
8.0.70.0040.00416.80
8.0.60.0050.00316.83
8.0.50.0000.00717.00
8.0.30.0110.00816.95
8.0.20.0130.00517.40
8.0.10.0040.00417.15
8.0.00.0100.00816.79
7.4.330.0000.00515.00
7.4.320.0000.00616.41
7.4.300.0060.00016.52
7.4.290.0070.00016.54
7.4.280.0000.00816.60
7.4.270.0070.00016.51
7.4.260.0030.00316.45
7.4.250.0080.00016.52
7.4.240.0050.00316.52
7.4.230.0030.00316.35
7.4.220.0120.00616.70
7.4.210.0100.00316.55
7.4.200.0030.00416.43
7.4.160.0120.00316.36
7.4.150.0190.00617.40
7.4.140.0090.00917.86
7.4.130.0090.00816.68
7.4.120.0100.00716.51
7.4.110.0120.00316.42
7.4.100.0140.00416.61
7.4.90.0110.01116.43
7.4.80.0090.00919.39
7.4.70.0190.00416.42
7.4.60.0140.00416.54
7.4.50.0040.00416.54
7.4.40.0050.01116.37
7.4.30.0100.00716.47
7.4.10.0070.01014.86
7.4.00.0060.01214.93
7.3.330.0030.00313.23
7.3.320.0030.00313.23
7.3.310.0000.00716.23
7.3.300.0030.00316.23
7.3.290.0000.01416.38
7.3.280.0080.00916.42
7.3.270.0190.00617.40
7.3.260.0140.00316.33
7.3.250.0130.00416.39
7.3.240.0060.01016.37
7.3.230.0140.00316.57
7.3.210.0170.00316.35
7.3.200.0090.01319.39
7.3.190.0100.01016.43
7.3.180.0110.00516.51
7.3.170.0030.01316.40
7.3.160.0090.00916.39
7.3.130.0100.00714.81
7.3.120.0090.00914.58
7.3.110.0060.00814.87
7.3.100.0090.00414.78
7.3.90.0030.01114.87
7.3.80.0070.00714.83
7.3.70.0080.00514.88
7.3.60.0090.00514.65
7.3.50.0050.00714.91
7.3.40.0040.01114.73
7.3.30.0020.00814.71
7.3.20.0070.00816.73
7.3.10.0060.00716.56
7.3.00.0070.00916.67
7.2.330.0070.01016.57
7.2.320.0130.00916.52
7.2.310.0120.00916.64
7.2.300.0040.01216.61
7.2.290.0100.00716.78
7.2.260.0030.01514.96
7.2.250.0050.01215.23
7.2.240.0090.00915.07
7.2.230.0020.01214.94
7.2.220.0060.01014.94
7.2.210.0030.01115.08
7.2.200.0070.00814.99
7.2.190.0060.00814.89
7.2.180.0060.01015.02
7.2.170.0090.00615.02
7.2.160.0090.00315.08
7.2.150.0060.00916.85
7.2.140.0090.00816.83
7.2.130.0050.01116.75
7.2.120.0030.00916.87
7.2.110.0090.00517.03
7.2.100.0100.00616.85
7.2.90.0100.00516.92
7.2.80.0060.00716.80
7.2.70.0070.00716.96
7.2.60.0080.00616.87
7.2.50.0070.00816.97
7.2.40.0090.01116.98
7.2.30.0080.00516.98
7.2.20.0050.01016.80
7.2.10.0060.00816.70
7.2.00.0100.00316.86
7.1.330.0060.00615.84
7.1.320.0050.00915.73
7.1.310.0080.00815.75
7.1.300.0040.01015.80
7.1.290.0080.00915.64
7.1.280.0070.00715.68
7.1.270.0110.00615.70
7.1.260.0050.00815.73
7.1.250.0070.00615.68
7.1.240.0040.00416.06
7.1.230.0000.01415.69
7.1.220.0060.00615.61
7.1.210.0060.00915.41
7.1.200.0030.00615.56
7.1.190.0120.00015.89
7.1.180.0100.00015.92
7.1.170.0120.00315.86
7.1.160.0060.01315.69
7.1.150.0000.01116.02
7.1.140.0120.00315.96
7.1.130.0100.00615.55
7.1.120.0030.00615.82
7.1.110.0100.00315.89
7.1.100.0040.00915.73
7.1.90.0110.00415.85
7.1.80.0060.00915.65
7.1.70.0020.00616.60
7.1.60.0080.01217.75
7.1.50.0080.01216.39
7.1.40.0040.01215.70
7.1.30.0060.00615.77
7.1.20.0060.00915.75
7.1.10.0060.00615.59
7.1.00.0030.04318.96
7.0.330.0070.01115.39
7.0.320.0080.00015.52
7.0.310.0070.00715.21
7.0.300.0060.00615.45
7.0.290.0060.00615.52
7.0.280.0030.01015.28
7.0.270.0030.00915.37
7.0.260.0030.01015.43
7.0.250.0040.00415.49
7.0.240.0040.00815.41
7.0.230.0040.00415.53
7.0.220.0060.00315.38
7.0.210.0050.00515.47
7.0.200.0060.00815.05
7.0.190.0070.00315.48
7.0.180.0130.00315.42
7.0.170.0030.01015.56
7.0.160.0060.00615.30
7.0.150.0040.00715.32
7.0.140.0020.04118.66
7.0.130.0030.01015.31
7.0.120.0040.00715.57
7.0.110.0030.01015.31
7.0.100.0030.01015.18
7.0.90.0080.03317.67
7.0.80.0070.04617.68
7.0.70.0190.02217.56
7.0.60.0120.02517.70
7.0.50.0110.02317.84
7.0.40.0050.02316.79
7.0.30.0120.03516.75
7.0.20.0090.03716.74
7.0.10.0070.04716.78
7.0.00.0090.02216.74
5.6.400.0000.01514.43
5.6.390.0120.00613.97
5.6.380.0030.00714.24
5.6.370.0040.00714.21
5.6.360.0120.00313.91
5.6.350.0040.00414.33
5.6.340.0070.00314.49
5.6.330.0080.00514.46
5.6.320.0030.00614.16
5.6.310.0070.00314.40
5.6.300.0000.01114.52
5.6.290.0040.00714.21
5.6.280.0030.04517.40
5.6.270.0030.01014.08
5.6.260.0060.00914.52
5.6.250.0040.01114.06
5.6.240.0060.03917.41
5.6.230.0080.02317.38
5.6.220.0020.03117.29
5.6.210.0050.02917.48
5.6.200.0070.02017.59
5.6.190.0010.02617.62
5.6.180.0090.04317.60
5.6.170.0090.04817.72
5.6.160.0020.02517.64
5.6.150.0050.03217.67
5.6.140.0080.02517.55
5.6.130.0080.02617.66
5.6.120.0080.02017.65
5.6.110.0020.03017.72
5.6.100.0020.02517.56
5.6.90.0040.02717.76
5.6.80.0050.02517.40
5.6.70.0050.02017.35
5.6.60.0080.02017.22
5.6.50.0040.02117.24
5.6.40.0030.02317.45
5.6.30.0070.02017.39
5.6.20.0050.02217.25
5.6.10.0030.02517.25
5.6.00.0050.02417.15
5.5.380.0080.04317.26
5.5.370.0000.03117.33
5.5.360.0060.02417.21
5.5.350.0070.02517.28
5.5.340.0020.02717.36
5.5.330.0060.02317.50
5.5.320.0070.03017.51
5.5.310.0100.04217.45
5.5.300.0080.03617.47
5.5.290.0060.02517.29
5.5.280.0050.02717.62
5.5.270.0050.02217.53
5.5.260.0050.02317.60
5.5.250.0070.02017.31
5.5.240.0030.02317.24
5.5.230.0060.02517.19
5.5.220.0030.02517.20
5.5.210.0030.02417.19
5.5.200.0050.02017.00
5.5.190.0050.02517.00
5.5.180.0050.02017.10
5.5.170.0070.00714.14
5.5.160.0050.02217.08
5.5.150.0030.02517.22
5.5.140.0070.02216.99
5.5.130.0050.02717.03
5.5.120.0100.02317.02
5.5.110.0030.04517.17
5.5.100.0080.02517.06
5.5.90.0020.04617.13
5.5.80.0160.03517.09
5.5.70.0120.03017.06
5.5.60.0020.02816.94
5.5.50.0060.02117.18
5.5.40.0120.02116.89
5.5.30.0040.02817.01
5.5.20.0050.03117.03
5.5.10.0020.03217.11
5.5.00.0050.02816.95
5.4.450.0020.03015.58
5.4.440.0070.02215.66
5.4.430.0050.02215.51
5.4.420.0050.02015.51
5.4.410.0100.01715.55
5.4.400.0070.02415.35
5.4.390.0000.03215.42
5.4.380.0020.02515.32
5.4.370.0070.01615.35
5.4.360.0000.02315.47
5.4.350.0020.02715.46
5.4.340.0030.02215.36
5.4.330.0000.01111.79
5.4.320.0000.02215.42
5.4.310.0050.02715.46
5.4.300.0080.01815.46
5.4.290.0040.04015.41
5.4.280.0070.03715.44
5.4.270.0100.02215.45
5.4.260.0020.02915.47
5.4.250.0070.04415.46
5.4.240.0120.04015.35
5.4.230.0070.02515.46
5.4.220.0070.04415.47
5.4.210.0060.02915.47
5.4.200.0050.04215.47
5.4.190.0080.04215.47
5.4.180.0090.02615.49
5.4.170.0000.05215.34
5.4.160.0060.03815.34
5.4.150.0050.04215.47
5.4.140.0070.03814.10
5.4.130.0050.04314.04
5.4.120.0050.03814.09
5.4.110.0080.03514.07
5.4.100.0130.03714.13
5.4.90.0030.02314.16
5.4.80.0040.02614.11
5.4.70.0050.03914.08
5.4.60.0070.03814.14
5.4.50.0030.04114.10
5.4.40.0020.04614.08
5.4.30.0070.03814.12
5.4.20.0080.03714.05
5.4.10.0030.04214.12
5.4.00.0070.03713.82
5.3.290.0000.04014.61
5.3.280.0170.06014.64
5.3.270.0100.03714.61
5.3.260.0100.07314.61
5.3.250.0070.07014.70
5.3.240.0170.07014.53
5.3.230.0000.05714.63
5.3.220.0070.04014.68
5.3.210.0030.07714.69
5.3.200.0130.04314.52
5.3.190.0100.06714.66
5.3.180.0030.04314.49
5.3.170.0030.06314.63
5.3.160.0100.07314.58
5.3.150.0130.06014.59
5.3.140.0070.04714.62
5.3.130.0100.05714.64
5.3.120.0100.07714.64
5.3.110.0070.07714.57
5.3.100.0000.07314.07
5.3.90.0200.04714.08
5.3.80.0130.07314.07
5.3.70.0070.07014.08
5.3.60.0070.04713.90
5.3.50.0000.04714.05
5.3.40.0030.07714.06
5.3.30.0030.05014.03
5.3.20.0000.08013.76
5.3.10.0100.05713.56
5.3.00.0000.06013.76
5.2.170.0000.03311.17
5.2.160.0030.06311.02
5.2.150.0030.04311.23
5.2.140.0170.05711.14
5.2.130.0000.05711.16
5.2.120.0070.05311.04
5.2.110.0000.05710.99
5.2.100.0200.03711.13
5.2.90.0070.06011.02
5.2.80.0100.05711.19
5.2.70.0070.04311.01
5.2.60.0100.05710.97
5.2.50.0030.03710.88
5.2.40.0070.02711.10
5.2.30.0030.04011.00
5.2.20.0000.06010.89
5.2.10.0000.05710.78
5.2.00.0100.05710.67
5.1.60.0030.05710.09
5.1.50.0070.04710.10
5.1.40.0070.0479.86
5.1.30.0000.04710.34
5.1.20.0070.04310.45
5.1.10.0070.05310.07
5.1.00.0030.04710.14
5.0.50.0070.0438.60
5.0.40.0170.0308.50
5.0.30.0100.0338.22
5.0.20.0000.0408.04
5.0.10.0100.0278.17
5.0.00.0030.0678.21
4.4.90.0070.0337.43
4.4.80.0070.0177.43
4.4.70.0100.0277.43
4.4.60.0030.0337.43
4.4.50.0030.0337.43
4.4.40.0030.0537.43
4.4.30.0070.0337.43
4.4.20.0030.0207.43
4.4.10.0030.0337.43
4.4.00.0030.0407.43
4.3.110.0030.0337.43
4.3.100.0070.0307.43
4.3.90.0030.0337.43
4.3.80.0030.0537.43
4.3.70.0070.0307.43
4.3.60.0000.0337.43
4.3.50.0030.0337.43
4.3.40.0100.0477.43
4.3.30.0030.0307.43
4.3.20.0000.0307.43
4.3.10.0000.0277.43
4.3.00.0000.0277.43

preferences:
48.4 ms | 400 KiB | 5 Q