3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo $var1 = utf8_encode('™'); $json = json_encode($var1); echo '<br>'; echo utf8_decode(json_decode($json));

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.0040.01416.63
8.3.50.0140.00322.00
8.3.40.0030.01418.88
8.3.30.0070.00719.13
8.3.20.0120.00320.21
8.3.10.0000.00723.52
8.3.00.0040.00419.02
8.2.180.0090.00918.29
8.2.170.0110.00422.96
8.2.160.0070.00720.52
8.2.150.0070.00024.18
8.2.140.0070.01124.66
8.2.130.0040.00426.16
8.2.120.0040.00420.89
8.2.110.0040.00722.29
8.2.100.0080.00317.91
8.2.90.0000.00819.21
8.2.80.0030.00517.97
8.2.70.0060.00317.38
8.2.60.0000.00817.79
8.2.50.0050.00318.07
8.2.40.0080.00020.07
8.2.30.0030.00618.25
8.2.20.0040.00417.55
8.2.10.0040.00417.97
8.2.00.0000.00817.68
8.1.280.0070.00725.92
8.1.270.0030.00523.84
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0070.01021.96
8.1.230.0110.00018.80
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0050.00517.35
8.1.190.0040.00717.22
8.1.180.0060.00618.10
8.1.170.0040.00418.45
8.1.160.0040.00421.96
8.1.150.0040.00418.58
8.1.140.0040.00417.34
8.1.130.0000.00717.84
8.1.120.0000.00717.44
8.1.110.0030.00517.39
8.1.100.0080.00017.26
8.1.90.0040.00417.39
8.1.80.0040.00417.36
8.1.70.0030.00317.32
8.1.60.0050.00317.50
8.1.50.0050.00317.40
8.1.40.0000.00817.37
8.1.30.0000.00817.52
8.1.20.0000.00817.51
8.1.10.0000.00717.48
8.1.00.0050.00217.41
8.0.300.0040.00418.77
8.0.290.0000.00817.30
8.0.280.0030.00318.45
8.0.270.0000.00716.86
8.0.260.0000.00617.15
8.0.250.0050.00217.00
8.0.240.0030.00516.95
8.0.230.0040.00416.86
8.0.220.0030.00316.88
8.0.210.0030.00316.74
8.0.200.0030.00316.75
8.0.190.0070.00016.80
8.0.180.0090.00016.85
8.0.170.0030.00516.84
8.0.160.0030.00516.84
8.0.150.0000.00716.79
8.0.140.0000.00716.69
8.0.130.0030.00313.24
8.0.120.0020.00516.89
8.0.110.0050.00216.78
8.0.100.0000.00716.89
8.0.90.0040.00416.88
8.0.80.0000.01416.87
8.0.70.0000.00716.66
8.0.60.0030.00416.64
8.0.50.0000.00716.62
8.0.30.0120.00617.03
8.0.20.0130.00617.40
8.0.10.0040.00416.99
8.0.00.0090.00816.95
7.4.330.0000.00615.00
7.4.320.0000.00716.36
7.4.300.0000.00716.45
7.4.290.0030.00316.39
7.4.280.0040.00416.54
7.4.270.0050.00316.37
7.4.260.0030.00316.52
7.4.250.0070.00016.31
7.4.240.0050.00216.51
7.4.230.0070.00016.28
7.4.220.0140.00316.50
7.4.210.0080.00716.54
7.4.200.0030.00316.28
7.4.190.0000.00716.62
7.4.160.0090.00916.40
7.4.150.0130.00417.40
7.4.140.0110.00617.86
7.4.130.0030.01316.46
7.4.120.0110.00816.41
7.4.110.0110.01116.32
7.4.100.0030.01416.58
7.4.90.0100.00616.24
7.4.80.0090.00919.39
7.4.70.0000.01816.41
7.4.60.0030.01316.24
7.4.50.0000.00816.46
7.4.40.0080.00816.38
7.4.30.0030.01216.50
7.4.00.0040.00814.84
7.3.330.0030.00312.98
7.3.320.0070.00013.03
7.3.310.0030.00316.26
7.3.300.0000.00816.18
7.3.290.0080.00716.07
7.3.280.0050.01116.16
7.3.270.0130.00317.40
7.3.260.0090.00916.35
7.3.250.0130.00516.41
7.3.240.0030.01516.27
7.3.230.0160.00016.39
7.3.210.0180.00316.16
7.3.200.0030.01319.39
7.3.190.0070.01016.29
7.3.180.0090.00916.39
7.3.170.0000.01616.31
7.3.160.0160.00016.31
7.3.120.0090.00414.95
7.2.330.0070.01416.47
7.2.320.0110.00716.56
7.2.310.0070.01416.46
7.2.300.0030.01316.33
7.2.290.0060.00916.77
7.2.00.0090.00919.26
7.1.200.0110.00015.77
7.1.100.0030.00718.01
7.1.70.0040.00417.25
7.1.60.0090.00919.46
7.1.50.0070.01516.91
7.1.00.0070.07322.32
7.0.200.0040.00716.73
7.0.140.0030.07722.05
7.0.110.0100.06321.74
7.0.100.0030.03721.73
7.0.90.0000.10321.63
7.0.80.0100.07721.64
7.0.70.0000.08721.69
7.0.60.0000.04021.78
7.0.50.0070.05022.00
7.0.40.0030.08720.18
7.0.30.0230.06720.23
7.0.20.0070.08020.00
7.0.10.0130.06320.21
7.0.00.0100.08020.19
5.6.280.0000.07720.90
5.6.260.0030.08020.84
5.6.250.0100.06320.60
5.6.240.0170.07320.64
5.6.230.0100.07320.56
5.6.220.0130.07320.57
5.6.210.0070.07320.55
5.6.200.0130.03320.89
5.6.190.0000.09320.88
5.6.180.0070.06720.87
5.6.170.0130.06020.98
5.6.160.0070.04721.03
5.6.150.0070.07321.03
5.6.140.0070.08721.08
5.6.130.0100.06321.03
5.6.120.0130.04020.88
5.6.110.0070.08021.07
5.6.100.0000.07720.88
5.6.90.0100.07721.01
5.6.80.0070.04720.44
5.6.70.0070.06320.40
5.6.60.0000.04020.19
5.6.50.0030.03320.31
5.6.40.0070.03320.25
5.6.30.0000.08020.33
5.6.20.0100.07020.22
5.6.10.0000.07020.56
5.6.00.0000.08020.43
5.5.380.0030.04320.35
5.5.370.0200.03720.50
5.5.360.0070.07320.47
5.5.350.0070.07320.42
5.5.340.0030.08020.69
5.5.330.0100.08020.75
5.5.320.0070.07720.84
5.5.310.0030.08020.91
5.5.300.0030.08720.89
5.5.290.0030.08720.84
5.5.280.0100.05320.66
5.5.270.0070.06320.79
5.5.260.0030.08320.82
5.5.250.0030.04020.70
5.5.240.0000.04320.36
5.5.230.0070.08020.34
5.5.220.0000.08020.11
5.5.210.0070.06320.35
5.5.200.0000.06020.27
5.5.190.0030.07720.33
5.5.180.0000.04020.10
5.5.160.0030.05320.19
5.5.150.0100.05720.19
5.5.140.0030.07720.07
5.5.130.0000.05020.19
5.5.120.0000.07320.19
5.5.110.0070.06020.17
5.5.100.0030.07720.20
5.5.90.0070.06320.18
5.5.80.0000.07320.17
5.5.70.0100.07020.07
5.5.60.0070.07320.13
5.5.50.0030.07320.18
5.5.40.0070.04020.06
5.5.30.0100.04020.20
5.5.20.0100.03720.13
5.5.10.0070.05720.08
5.5.00.0070.04320.13
5.4.450.0030.06319.46
5.4.440.0070.06319.28
5.4.430.0130.07019.35
5.4.420.0130.04019.48
5.4.410.0000.06319.47
5.4.400.0030.06019.03
5.4.390.0070.06318.98
5.4.380.0030.06719.02
5.4.370.0000.05319.12
5.4.360.0000.04018.95
5.4.350.0030.07318.93
5.4.340.0000.08019.03
5.4.320.0100.05019.18
5.4.310.0030.08319.12
5.4.300.0030.04319.17
5.4.290.0030.06319.16
5.4.280.0130.07018.95
5.4.270.0030.07319.27
5.4.260.0030.04319.07
5.4.250.0100.07019.11
5.4.240.0000.05019.02
5.4.230.0070.07019.28
5.4.220.0030.07019.27
5.4.210.0070.04019.11
5.4.200.0030.06019.00
5.4.190.0070.03319.15
5.4.180.0000.08018.99
5.4.170.0030.08019.20
5.4.160.0000.07319.09
5.4.150.0000.07718.99
5.4.140.0030.03716.47
5.4.130.0070.03316.17
5.4.120.0000.07716.47
5.4.110.0030.07316.50
5.4.100.0000.07316.48
5.4.90.0000.07316.29
5.4.80.0030.06716.49
5.4.70.0070.06716.48
5.4.60.0070.03716.26
5.4.50.0070.07016.26
5.4.40.0000.07716.43
5.4.30.0000.05316.39
5.4.20.0030.06716.49
5.4.10.0030.03716.10
5.4.00.0030.03715.95
5.3.290.0000.06314.76
5.3.280.0030.04314.61
5.3.270.0100.07014.39
5.3.260.0100.07014.49
5.3.250.0030.07014.59
5.3.240.0000.04314.63
5.3.230.0030.07714.48
5.3.220.0000.07314.43
5.3.210.0030.07714.59
5.3.200.0070.07014.39
5.3.190.0000.07014.41
5.3.180.0030.07714.55
5.3.170.0030.06014.66
5.3.160.0000.04314.63
5.3.150.0000.07714.63
5.3.140.0000.07314.34
5.3.130.0070.04314.61
5.3.120.0000.05014.64
5.3.110.0100.06314.49
5.3.100.0030.04013.96
5.3.90.0070.06713.92
5.3.80.0030.07313.95
5.3.70.0100.05713.80
5.3.60.0100.06313.94
5.3.50.0030.07313.80
5.3.40.0030.05013.79
5.3.30.0030.07313.75
5.3.20.0070.06713.52
5.3.10.0000.07013.75
5.3.00.0000.07013.57
5.2.170.0070.05711.32
5.2.160.0000.06311.32
5.2.150.0100.05311.32
5.2.140.0030.06011.32
5.2.130.0070.05711.32
5.2.120.0000.06011.32
5.2.110.0000.06011.32
5.2.100.0070.04011.32
5.2.90.0030.06011.32
5.2.80.0000.05711.32
5.2.70.0030.05311.32
5.2.60.0070.05011.32
5.2.50.0030.05311.32
5.2.40.0000.04711.32
5.2.30.0000.05011.32
5.2.20.0070.03011.32
5.2.10.0030.05311.32
5.2.00.0030.05711.32
5.1.60.0070.03711.32
5.1.50.0030.05011.32
5.1.40.0070.04711.32
5.1.30.0070.04711.32
5.1.20.0070.03311.32
5.1.10.0030.05011.32
5.1.00.0030.05711.32
5.0.50.0030.04311.32
5.0.40.0030.04311.32
5.0.30.0000.03311.32
5.0.20.0000.04311.32
5.0.10.0070.03711.32
5.0.00.0030.05711.32
4.4.90.0070.03011.32
4.4.80.0000.02011.32
4.4.70.0030.03311.32
4.4.60.0000.03711.32
4.4.50.0000.03311.32
4.4.40.0000.04311.32
4.4.30.0000.03711.32
4.4.20.0000.03711.32
4.4.10.0000.03011.32
4.4.00.0000.04711.32
4.3.110.0000.03311.32
4.3.100.0030.03011.32
4.3.90.0030.03011.32
4.3.80.0030.03711.32
4.3.70.0070.02711.32
4.3.60.0070.02711.32
4.3.50.0030.03311.32
4.3.40.0070.05011.32
4.3.30.0000.03711.32
4.3.20.0000.03711.32
4.3.10.0030.03011.32
4.3.00.0000.02311.32

preferences:
57.9 ms | 401 KiB | 5 Q