3v4l.org

run code in 300+ PHP versions simultaneously
<?php $abc = array('안녕하세요?'); $json_output = json_encode($abc, true); print_r($json_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.60.0060.01216.50
8.3.50.0170.00317.20
8.3.40.0100.00718.54
8.3.30.0110.00318.45
8.3.20.0050.00318.48
8.3.10.0040.00420.36
8.3.00.0060.00319.13
8.2.180.0130.00716.75
8.2.170.0120.00322.96
8.2.160.0030.01022.13
8.2.150.0070.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0100.00719.82
8.2.110.0050.00521.00
8.2.100.0000.01117.66
8.2.90.0050.00519.09
8.2.80.0040.00417.91
8.2.70.0000.00817.50
8.2.60.0030.00517.80
8.2.50.0060.00318.07
8.2.40.0030.00618.22
8.2.30.0070.00017.81
8.2.20.0070.00017.56
8.2.10.0000.00817.55
8.2.00.0040.00417.67
8.1.280.0080.00825.92
8.1.270.0040.00724.66
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0070.00322.52
8.1.230.0070.00320.89
8.1.220.0090.00017.76
8.1.210.0040.00418.77
8.1.200.0030.00617.22
8.1.190.0000.00717.43
8.1.180.0040.00418.10
8.1.170.0060.00320.63
8.1.160.0040.00418.69
8.1.150.0050.00218.57
8.1.140.0000.00817.34
8.1.130.0040.00417.88
8.1.120.0030.00317.38
8.1.110.0080.00017.40
8.1.100.0040.00417.32
8.1.90.0000.00717.43
8.1.80.0050.00217.34
8.1.70.0070.00017.34
8.1.60.0030.00817.52
8.1.50.0050.00317.36
8.1.40.0040.00417.36
8.1.30.0000.00817.47
8.1.20.0040.00417.52
8.1.10.0000.00717.42
8.1.00.0000.00717.44
8.0.300.0000.00819.90
8.0.290.0040.00416.58
8.0.280.0000.00818.26
8.0.270.0030.00317.06
8.0.260.0000.00718.28
8.0.250.0040.00416.89
8.0.240.0040.00416.90
8.0.230.0070.00016.84
8.0.220.0030.00316.77
8.0.210.0000.00716.80
8.0.200.0040.00416.92
8.0.190.0000.00716.89
8.0.180.0070.00016.66
8.0.170.0060.00316.80
8.0.160.0080.00016.91
8.0.150.0050.00316.71
8.0.140.0030.00616.78
8.0.130.0000.00513.33
8.0.120.0040.00416.80
8.0.110.0040.00416.71
8.0.100.0050.00316.79
8.0.90.0040.00416.63
8.0.80.0130.01016.84
8.0.70.0000.00716.89
8.0.60.0030.00516.85
8.0.50.0040.00416.68
8.0.30.0080.01317.02
8.0.20.0170.00317.13
8.0.10.0070.00016.89
8.0.00.0030.01416.74
7.4.330.0040.00012.90
7.4.320.0040.00416.48
7.4.300.0000.00616.46
7.4.290.0070.00016.30
7.4.280.0040.00416.47
7.4.270.0060.00316.58
7.4.260.0070.00013.14
7.4.250.0030.00616.34
7.4.240.0030.00316.34
7.4.230.0000.00716.54
7.4.220.0090.00916.62
7.4.210.0050.01316.50
7.4.200.0030.00316.43
7.4.190.0070.00016.38
7.4.160.0090.00616.32
7.4.150.0140.01116.23
7.4.140.0130.00816.38
7.4.130.0160.00616.48
7.4.120.0090.00916.33
7.4.110.0110.00716.38
7.4.100.0140.00316.41
7.4.90.0140.00416.42
7.4.80.0180.00616.32
7.4.70.0080.00816.52
7.4.60.0110.00916.36
7.4.50.0000.00916.19
7.4.40.0070.00716.16
7.4.30.0080.00816.43
7.4.00.0000.01614.89
7.3.330.0030.00313.11
7.3.320.0030.00312.95
7.3.310.0040.00416.12
7.3.300.0030.00316.08
7.3.290.0030.01016.08
7.3.280.0050.01116.14
7.3.270.0170.00716.42
7.3.260.0090.01116.19
7.3.250.0060.01116.25
7.3.240.0140.00716.11
7.3.230.0120.00616.19
7.3.210.0070.01016.16
7.3.200.0100.00919.39
7.3.190.0090.00616.26
7.3.180.0080.00816.34
7.3.170.0110.00716.11
7.3.160.0100.00516.22
7.3.120.0070.00714.65
7.2.330.0060.01116.46
7.2.320.0060.01316.50
7.2.310.0090.00916.52
7.2.300.0080.00816.28
7.2.290.0030.01416.61
7.2.00.0040.00919.07
7.1.100.0080.01917.62
7.1.70.0030.00717.20
7.1.60.0090.01619.40
7.1.50.0040.00716.84
7.1.00.0070.07322.48
7.0.200.0170.00714.82
7.0.140.0130.06722.22
7.0.120.0030.06721.95
7.0.90.0370.06019.91
7.0.80.0530.07319.96
7.0.70.0570.08020.12
7.0.60.0500.07319.95
7.0.50.0500.04720.29
7.0.40.0070.08320.07
7.0.30.0030.05320.13
7.0.20.0130.05320.07
7.0.10.0070.05319.98
7.0.00.0030.08020.00
5.6.280.0000.07720.77
5.6.240.0070.07720.62
5.6.230.0230.05320.56
5.6.220.0070.08320.64
5.6.210.0200.07020.47
5.6.200.0000.07321.08
5.6.190.0100.05020.93
5.6.180.0070.08321.08
5.6.170.0070.09021.01
5.6.160.0230.06021.05
5.6.150.0070.05320.93
5.6.140.0100.04021.03
5.6.130.0100.08321.08
5.6.120.0070.08321.07
5.6.110.0030.08321.04
5.6.100.0100.08320.91
5.6.90.0130.07721.00
5.6.80.0100.07720.38
5.6.70.0130.07020.36
5.6.60.0100.08020.39
5.6.50.0270.05720.54
5.6.40.0170.06720.48
5.6.30.0100.08020.38
5.6.20.0100.05720.39
5.6.10.0070.04020.36
5.6.00.0070.07720.42
5.5.380.0030.07720.41
5.5.370.0070.07020.34
5.5.360.0070.08720.35
5.5.350.0130.07020.36
5.5.340.0000.08720.87
5.5.330.0100.08020.92
5.5.320.0030.05320.79
5.5.310.0070.08320.86
5.5.300.0070.05320.77
5.5.290.0170.08020.81
5.5.280.0170.07320.78
5.5.270.0070.08720.88
5.5.260.0130.08020.88
5.5.250.0070.07720.68
5.5.240.0030.07720.23
5.5.230.0230.07320.10
5.5.220.0130.07320.25
5.5.210.0070.07320.20
5.5.200.0170.07020.14
5.5.190.0130.07019.98
5.5.180.0030.05019.98
5.5.160.0100.08020.27
5.5.150.0170.06020.16
5.5.140.0070.07720.20
5.5.130.0030.07720.09
5.5.120.0070.07319.98
5.5.110.0070.08020.22
5.5.100.0030.08720.13
5.5.90.0070.06720.14
5.5.80.0030.07720.05
5.5.70.0070.06719.99
5.5.60.0070.07320.05
5.5.50.0170.06320.02
5.5.40.0030.06320.04
5.5.30.0030.07719.95
5.5.20.0070.07320.12
5.5.10.0100.07720.04
5.5.00.0100.07720.00
5.4.450.0170.07019.31
5.4.440.0100.08019.32
5.4.430.0070.06319.43
5.4.420.0170.06019.35
5.4.410.0070.08019.25
5.4.400.0000.07718.89
5.4.390.0030.08319.11
5.4.380.0070.07718.81
5.4.370.0070.08019.11
5.4.360.0100.07718.96
5.4.350.0070.07319.09
5.4.340.0100.07019.07
5.4.320.0030.08019.23
5.4.310.0070.07018.89
5.4.300.0030.07019.14
5.4.290.0100.05318.81
5.4.280.0070.07319.09
5.4.270.0070.04319.09
5.4.260.0070.07319.02
5.4.250.0130.04019.02
5.4.240.0070.08019.03
5.4.230.0030.07319.02
5.4.220.0030.06019.05
5.4.210.0030.08318.95
5.4.200.0070.07018.86
5.4.190.0000.05018.95
5.4.180.0130.06719.02
5.4.170.0100.05018.95
5.4.160.0130.07718.87
5.4.150.0070.07318.76
5.4.140.0070.06016.29
5.4.130.0070.04016.23
5.4.120.0000.05716.23
5.4.110.0070.07016.36
5.4.100.0000.04316.25
5.4.90.0000.04016.42
5.4.80.0170.02716.33
5.4.70.0000.04016.43
5.4.60.0000.03716.23
5.4.50.0030.03716.21
5.4.40.0070.03316.41
5.4.30.0070.03016.31
5.4.20.0000.04016.34
5.4.10.0070.04716.29
5.4.00.0030.05015.77
5.3.290.0070.05014.48
5.3.280.0100.03714.58
5.3.270.0030.07714.44
5.3.260.0070.06714.46
5.3.250.0070.05314.59
5.3.240.0100.07014.54
5.3.230.0100.06714.57
5.3.220.0070.04014.52
5.3.210.0030.03714.44
5.3.200.0000.05714.52
5.3.190.0070.03314.42
5.3.180.0030.04014.57
5.3.170.0000.04014.55
5.3.160.0000.04314.54
5.3.150.0000.04314.57
5.3.140.0000.04014.49
5.3.130.0000.04314.54
5.3.120.0070.03314.52
5.3.110.0000.04314.45
5.3.100.0100.04314.01
5.3.90.0030.06714.02
5.3.80.0100.02313.89
5.3.70.0100.02313.87
5.3.60.0070.07013.98
5.3.50.0030.03713.71
5.3.40.0000.03713.95
5.3.30.0100.02313.86
5.3.20.0000.04313.54
5.3.10.0030.03313.62
5.3.00.0030.04013.62
5.2.170.0070.02711.18
5.2.160.0070.03711.13
5.2.150.0070.04011.15
5.2.140.0100.04011.21
5.2.130.0000.03011.08
5.2.120.0030.03011.02
5.2.110.0070.02710.95
5.2.100.0000.02711.09
5.2.90.0030.02310.94
5.2.80.0070.04311.05
5.2.70.0030.03010.91
5.2.60.0030.03310.83
5.2.50.0030.05011.05
5.2.40.0030.02711.06
5.2.30.0000.03011.02
5.2.20.0070.02010.92
5.2.10.0030.03310.75
5.2.00.0000.03010.76
5.1.60.0030.02010.00
5.1.50.0000.0279.99
5.1.40.0000.02710.00
5.1.30.0000.03010.34
5.1.20.0030.02310.37
5.1.10.0030.0379.94
5.1.00.0000.02710.13
5.0.50.0000.0208.40
5.0.40.0000.0238.40
5.0.30.0030.0308.06
5.0.20.0070.0438.19
5.0.10.0100.0108.21
5.0.00.0000.0308.22
4.4.90.0000.0337.35
4.4.80.0030.0337.35
4.4.70.0000.0177.35
4.4.60.0030.0307.35
4.4.50.0000.0177.35
4.4.40.0000.0237.35
4.4.30.0000.0237.35
4.4.20.0000.0177.35
4.4.10.0000.0137.35
4.4.00.0000.0237.35
4.3.110.0000.0177.35
4.3.100.0000.0177.35
4.3.90.0030.0207.35
4.3.80.0000.0237.35
4.3.70.0030.0207.35
4.3.60.0000.0207.35
4.3.50.0070.0137.35
4.3.40.0000.0277.35
4.3.30.0000.0177.35
4.3.20.0030.0137.35
4.3.10.0030.0237.35
4.3.00.0000.0137.35

preferences:
44.6 ms | 401 KiB | 5 Q