3v4l.org

run code in 300+ PHP versions simultaneously
<?php $encoded = substr(json_encode("\r\n\f\thoge\0\x0f", JSON_UNESCAPED_UNICODE), 1, -1); echo $encoded;

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.0130.00618.06
8.3.50.0140.00718.03
8.3.40.0110.00718.63
8.3.30.0160.00418.59
8.3.20.0030.00321.81
8.3.10.0040.00423.60
8.3.00.0040.00423.70
8.2.180.0140.00317.93
8.2.170.0030.01422.96
8.2.160.0090.00620.57
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0030.00620.50
8.2.110.0050.00521.07
8.2.100.0070.00417.91
8.2.90.0040.00419.23
8.2.80.0000.00817.97
8.2.70.0050.00318.03
8.2.60.0000.00917.50
8.2.50.0000.00718.10
8.2.40.0050.00220.61
8.2.30.0070.00020.64
8.2.20.0000.00718.04
8.2.10.0020.00517.92
8.2.00.0000.00718.03
8.1.280.0100.00725.92
8.1.270.0000.00723.88
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0060.00319.51
8.1.230.0030.00717.70
8.1.220.0040.00417.77
8.1.210.0040.00418.77
8.1.200.0050.00317.00
8.1.190.0000.00917.23
8.1.180.0040.00418.10
8.1.170.0040.00418.61
8.1.160.0040.00418.82
8.1.150.0030.00320.25
8.1.140.0080.00017.69
8.1.130.0000.00619.02
8.1.120.0070.00017.40
8.1.110.0000.00717.43
8.1.100.0000.00717.29
8.1.90.0000.00817.42
8.1.80.0070.00017.40
8.1.70.0000.00817.37
8.1.60.0040.00417.41
8.1.50.0060.00317.36
8.1.40.0000.00717.30
8.1.30.0000.00817.60
8.1.20.0030.00617.60
8.1.10.0040.00417.50
8.1.00.0030.00517.44
8.0.300.0030.00518.84
8.0.290.0040.00416.63
8.0.280.0000.00718.43
8.0.270.0000.00717.16
8.0.260.0000.00816.73
8.0.250.0030.00316.86
8.0.240.0070.00416.93
8.0.230.0040.00416.89
8.0.220.0050.00216.78
8.0.210.0040.00416.71
8.0.200.0000.00816.77
8.0.190.0030.00516.91
8.0.180.0000.00716.78
8.0.170.0090.00016.82
8.0.160.0000.00716.91
8.0.150.0090.00316.79
8.0.140.0000.00816.71
8.0.130.0030.00313.22
8.0.120.0000.00816.79
8.0.110.0000.00716.80
8.0.100.0070.00016.74
8.0.90.0040.00416.85
8.0.80.0070.01016.77
8.0.70.0040.00416.80
8.0.60.0070.00016.84
8.0.50.0080.00016.71
8.0.30.0120.00516.97
8.0.20.0130.01017.40
8.0.10.0050.00216.90
8.0.00.0080.01316.92
7.4.330.0050.00015.55
7.4.320.0000.00616.57
7.4.300.0030.00316.42
7.4.290.0000.00716.51
7.4.280.0030.00516.34
7.4.270.0050.00316.50
7.4.260.0030.00316.27
7.4.250.0060.00316.50
7.4.240.0070.00016.43
7.4.230.0030.00316.64
7.4.220.0000.00816.23
7.4.210.0030.01116.48
7.4.200.0030.00516.48
7.4.160.0100.00616.39
7.4.140.0100.01017.86
7.4.130.0110.00716.57
7.4.120.0090.00916.53
7.4.110.0100.00716.50
7.4.100.0070.01016.53
7.4.90.0120.00916.48
7.4.80.0160.00619.39
7.4.70.0060.00916.31
7.4.60.0030.01316.34
7.4.50.0030.01316.52
7.4.40.0080.00816.35
7.4.00.0090.00614.75
7.3.330.0050.00013.13
7.3.320.0030.00313.03
7.3.310.0070.00016.27
7.3.300.0000.00716.19
7.3.290.0030.00316.06
7.3.280.0080.00716.19
7.3.260.0060.01316.37
7.3.250.0070.01016.27
7.3.240.0180.00416.24
7.3.230.0000.01716.30
7.3.210.0040.01416.16
7.3.200.0070.01616.58
7.3.190.0060.01016.34
7.3.180.0060.01016.17
7.3.170.0090.00616.38
7.3.160.0100.00616.55
7.3.10.0030.01416.47
7.3.00.0030.01016.61
7.2.330.0100.00716.64
7.2.320.0190.00016.42
7.2.310.0130.01016.24
7.2.300.0090.00916.52
7.2.290.0100.01016.57
7.2.130.0060.00916.86
7.2.120.0030.01316.84
7.2.110.0000.01516.83
7.2.100.0000.01316.61
7.2.90.0070.01016.69
7.2.80.0080.00316.78
7.2.70.0180.00016.91
7.2.60.0030.01016.81
7.2.50.0060.00916.41
7.2.40.0040.00716.77
7.2.30.0170.00917.19
7.2.20.0330.00717.31
7.2.10.0130.01117.19
7.2.00.0100.01117.20
7.1.250.0000.01315.41
7.1.200.0000.00815.78
7.1.150.0260.00916.30
7.1.140.0300.01416.63
7.1.130.0150.01016.63
7.1.120.0190.01116.41
7.1.110.0210.01216.00
7.1.100.0130.01415.78
7.1.90.0130.01215.86
7.1.80.0120.01615.68
7.1.70.0140.00815.29
7.1.60.0460.01233.14
7.1.50.0430.01832.62
7.1.40.0330.01932.58
7.1.30.0370.01832.53
7.1.20.0370.02332.72
7.1.10.0160.00914.73
7.1.00.0160.01514.71

preferences:
97.1 ms | 401 KiB | 5 Q