3v4l.org

run code in 300+ PHP versions simultaneously
<?php $utf8_string = "https://\xec\xe5\xf5\xe0\xed\xe8\xe7\xe8\xf0\xee\xe2\xe0\xed\xed\xe0\xff-\xf8\xf2\xf3\xea\xe0\xf2\xf3\xf0\xea\xe024.\xf0\xf4/"; // $utf8_string = "\x5A\x6F\xC3\xAB"; // 'Zoƫ' in UTF-8 $utf16_string = UConverter::transcode($utf8_string, 'UTF-16', 'UTF-8'); // echo bin2hex($utf16_string), "\n"; echo $utf16_string;

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.5.10.0120.00716.87
8.5.00.0140.00720.99
8.4.160.0130.01124.89
8.4.150.0020.00114.05
8.4.140.0150.00918.29
8.4.130.0090.01118.13
8.4.120.0130.00821.36
8.4.110.0090.00619.49
8.4.100.0050.00418.20
8.4.90.0100.00718.34
8.4.80.0140.00620.09
8.4.70.0450.00818.33
8.4.60.0350.00918.21
8.4.50.0390.00818.57
8.4.40.0420.01018.01
8.4.30.0350.01317.97
8.4.20.0410.00918.28
8.4.10.0480.00617.86
8.3.280.0110.00921.03
8.3.270.0100.00916.90
8.3.260.0110.00817.02
8.3.250.0080.00519.72
8.3.240.0110.00817.02
8.3.230.0050.00317.33
8.3.220.0070.00217.21
8.3.210.0260.01016.91
8.3.200.0220.00617.04
8.3.190.0210.00117.04
8.3.180.0200.00216.80
8.3.170.0190.00317.20
8.3.160.0180.00417.08
8.3.150.0180.00317.11
8.3.140.0410.00817.13
8.3.130.0310.00817.34
8.3.120.0210.00517.19
8.3.110.0310.00817.14
8.3.100.0350.01016.70
8.3.90.0400.00716.87
8.3.80.0390.00817.09
8.3.70.0390.00817.00
8.3.60.0380.00816.79
8.3.50.0370.01116.91
8.3.40.0420.01517.82
8.3.30.0300.00718.09
8.3.20.0310.00918.09
8.3.10.0260.01217.88
8.3.00.0210.00917.95
8.2.290.0120.00719.66
8.2.280.0290.00817.29
8.2.270.0340.00617.14
8.2.260.0280.01117.05
8.2.250.0320.00617.10
8.2.240.0280.00916.94
8.2.230.0260.00816.81
8.2.220.0340.00617.03
8.2.210.0290.01016.81
8.2.200.0310.00817.25
8.2.190.0280.01216.98
8.2.180.0320.01016.77
8.2.170.0360.00518.26
8.2.160.0320.00718.24
8.2.150.0310.00918.24
8.2.140.0290.01317.96
8.2.130.0290.00718.20
8.2.120.0340.00918.27
8.2.110.0320.01018.33
8.2.100.0330.00517.97
8.2.90.0320.01118.23
8.2.80.0410.01017.85
8.2.70.0330.00918.24
8.2.60.0320.00918.09
8.2.50.0350.00618.08
8.2.40.0310.00917.97
8.2.30.0340.00618.20
8.2.20.0220.00817.95
8.2.10.0300.01017.86
8.2.00.0280.00718.25

preferences:
35.31 ms | 403 KiB | 5 Q