3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = array( "Sample" => array( "context" => 'Тикшерү' ) ); echo mb_convert_encoding(json_encode($json), "UTF-8");

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.00318.86
8.3.30.0070.00718.60
8.3.20.0040.00420.09
8.3.10.0080.00023.66
8.3.00.0050.00319.69
8.2.170.0100.00322.96
8.2.160.0090.00620.44
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0000.00826.16
8.2.120.0030.00617.50
8.2.110.0060.00320.43
8.2.100.0080.00417.84
8.2.90.0030.00817.68
8.2.80.0040.00417.97
8.2.70.0080.00018.04
8.2.60.0050.00318.09
8.2.50.0000.00818.10
8.2.40.0060.00319.39
8.2.30.0000.00820.64
8.2.20.0030.00617.66
8.2.10.0030.00517.91
8.2.00.0030.00617.94
8.1.270.0120.00623.79
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0090.00023.98
8.1.230.0070.00720.87
8.1.220.0030.00517.74
8.1.210.0030.00618.77
8.1.200.0060.00317.23
8.1.190.0060.00317.22
8.1.180.0080.00018.10
8.1.170.0020.00518.66
8.1.160.0050.00221.99
8.1.150.0070.00018.88
8.1.140.0050.00317.43
8.1.130.0000.00717.74
8.1.120.0000.00817.47
8.1.110.0000.00717.32
8.1.100.0030.00617.32
8.1.90.0040.00417.30
8.1.80.0040.00417.35
8.1.70.0040.00417.35
8.1.60.0040.00417.63
8.1.50.0000.00917.52
8.1.40.0040.00417.40
8.1.30.0070.00317.55
8.1.20.0030.00517.54
8.1.10.0050.00317.53
8.1.00.0000.00817.47
8.0.300.0000.00819.58
8.0.290.0030.00716.75
8.0.280.0050.00218.56
8.0.270.0040.00417.29
8.0.260.0030.00617.23
8.0.250.0040.00416.88
8.0.240.0030.00317.08
8.0.230.0000.00716.93
8.0.220.0040.00416.85
8.0.210.0050.00316.81
8.0.200.0000.00616.86
8.0.190.0000.00816.86
8.0.180.0050.00316.79
8.0.170.0050.00316.90
8.0.160.0060.00317.02
8.0.150.0000.00716.90
8.0.140.0000.00716.86
8.0.130.0050.00013.31
8.0.120.0080.00016.91
8.0.110.0000.00816.86
8.0.100.0050.00216.77
8.0.90.0030.00516.71
8.0.80.0110.00316.93
8.0.70.0040.00416.76
8.0.60.0000.00716.83
8.0.50.0030.00516.71
8.0.30.0150.00416.85
8.0.20.0090.01017.40
8.0.10.0040.00417.01
8.0.00.0100.00816.71
7.4.330.0000.00515.08
7.4.320.0000.00716.50
7.4.300.0030.00316.62
7.4.290.0060.00316.36
7.4.280.0030.00816.52
7.4.270.0070.00016.48
7.4.260.0070.00016.58
7.4.250.0070.00016.49
7.4.240.0050.00316.62
7.4.230.0030.00316.68
7.4.220.0110.00716.59
7.4.210.0060.00816.48
7.4.200.0070.00016.58
7.4.160.0090.00916.38
7.4.150.0130.00317.40
7.4.140.0110.01017.86
7.4.130.0090.00916.53
7.4.120.0130.00516.43
7.4.110.0100.00616.33
7.4.100.0150.00616.43
7.4.90.0130.00516.47
7.4.80.0100.00819.39
7.4.70.0070.01016.45
7.4.60.0130.00316.36
7.4.50.0050.00316.23
7.4.40.0060.00916.32
7.4.30.0070.01016.63
7.4.00.0060.01214.99
7.3.330.0030.00312.96
7.3.320.0050.00013.05
7.3.310.0060.00016.20
7.3.300.0050.00216.20
7.3.290.0100.00916.17
7.3.280.0100.00716.19
7.3.270.0100.01317.40
7.3.260.0140.00316.66
7.3.250.0070.01216.40
7.3.240.0120.01216.54
7.3.230.0100.01316.39
7.3.210.0030.01316.36
7.3.200.0100.00616.32
7.3.190.0030.01816.50
7.3.180.0040.01116.22
7.3.170.0100.00716.45
7.3.160.0080.00816.37
7.2.330.0090.01016.45
7.2.320.0060.01016.39
7.2.310.0000.01716.68
7.2.300.0140.00716.53
7.2.290.0130.01016.77
7.2.60.0040.01216.89
7.2.00.0080.00619.20
7.1.200.0000.01515.72
7.1.100.0220.01015.95
7.1.70.0000.00717.13
7.1.60.0030.02019.50
7.1.50.0110.01416.47
7.1.00.0030.07722.46
7.0.200.0030.00716.54
7.0.90.0630.08319.89
7.0.80.0700.06719.87
7.0.70.0570.09019.83
7.0.60.0670.07019.91
7.0.50.0570.07320.21
7.0.40.0030.08720.18
7.0.30.0030.04320.14
7.0.20.0130.06720.10
7.0.10.0070.07720.14
7.0.00.0070.08320.07
5.6.280.0030.03021.14
5.6.240.0100.07720.50
5.6.230.0070.08020.60
5.6.220.0030.07320.57
5.6.210.0100.08320.64
5.6.200.0100.08021.01
5.6.190.0130.04020.93
5.6.180.0270.06721.10
5.6.170.0070.05321.01
5.6.160.0030.08320.96
5.6.150.0070.07021.14
5.6.140.0070.05021.07
5.6.130.0030.07021.04
5.6.120.0070.05720.95
5.6.110.0030.08721.12
5.6.100.0030.09021.08
5.6.90.0170.05720.91
5.6.80.0100.07020.43
5.6.70.0130.07320.48
5.6.60.0200.07020.53
5.6.50.0130.07320.46
5.6.40.0170.05720.30
5.6.30.0030.05320.36
5.6.20.0030.07720.28
5.6.10.0100.07320.42
5.6.00.0000.06020.33
5.5.380.0000.08720.44
5.5.370.0070.07320.42
5.5.360.0100.08720.34
5.5.350.0200.07020.36
5.5.340.0030.08720.89
5.5.330.0070.08020.81
5.5.320.0000.05020.88
5.5.310.0030.08020.71
5.5.300.0070.07020.82
5.5.290.0100.04720.79
5.5.280.0130.06320.79
5.5.270.0170.07320.88
5.5.260.0000.06320.81
5.5.250.0070.07020.64
5.5.240.0130.07020.24
5.5.230.0000.08720.10
5.5.220.0100.04320.13
5.5.210.0130.07320.12
5.5.200.0130.07319.99
5.5.190.0070.04720.24
5.5.180.0230.05720.17
5.5.160.0030.08020.27
5.5.150.0000.05720.16
5.5.140.0130.08020.14
5.5.130.0100.07020.14
5.5.120.0030.07320.18
5.5.110.0100.07720.21
5.5.100.0130.09020.16
5.5.90.0100.07320.14
5.5.80.0170.06020.14
5.5.70.0170.03720.15
5.5.60.0030.05320.13
5.5.50.0070.07320.04
5.5.40.0100.08020.09
5.5.30.0070.07320.14
5.5.20.0130.04319.94
5.5.10.0200.06320.09
5.5.00.0070.07720.04
5.4.450.0170.07319.44
5.4.440.0100.07319.30
5.4.430.0100.07719.41
5.4.420.0070.07019.55
5.4.410.0100.04719.29
5.4.400.0070.07318.98
5.4.390.0030.08318.98
5.4.380.0100.07318.98
5.4.370.0030.05019.11
5.4.360.0130.07018.78
5.4.350.0030.05319.23
5.4.340.0000.05719.23
5.4.320.0070.07319.05
5.4.310.0000.08019.11
5.4.300.0170.06718.98
5.4.290.0100.07318.89
5.4.280.0070.08019.07
5.4.270.0030.08018.93
5.4.260.0100.04319.03
5.4.250.0100.07019.03
5.4.240.0130.06718.77
5.4.230.0030.08319.14
5.4.220.0100.07318.97
5.4.210.0030.05719.12
5.4.200.0000.05019.22
5.4.190.0030.04319.00
5.4.180.0130.07319.02
5.4.170.0070.08318.96
5.4.160.0170.07019.01
5.4.150.0070.07318.76
5.4.140.0030.07716.32
5.4.130.0030.07716.31
5.4.120.0100.06716.28
5.4.110.0030.07716.24
5.4.100.0100.07016.41
5.4.90.0000.07716.36
5.4.80.0100.04316.23
5.4.70.0030.04316.41
5.4.60.0100.03716.36
5.4.50.0000.04316.22
5.4.40.0030.07716.34
5.4.30.0030.05016.30
5.4.20.0070.05716.18
5.4.10.0100.07016.36
5.4.00.0030.07015.76

preferences:
55.09 ms | 400 KiB | 5 Q