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-16BE', '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.00.0150.00620.84
8.4.150.0030.00014.05
8.4.140.0100.01018.01
8.4.130.0110.00922.57
8.4.120.0130.00721.17
8.4.110.0060.00519.40
8.4.100.0120.00918.25
8.4.90.0070.00718.31
8.4.80.0130.00820.11
8.4.70.0370.01018.25
8.4.60.0330.01218.22
8.4.50.0390.00818.23
8.4.40.0410.00918.07
8.4.30.0370.01117.78
8.4.20.0190.01118.24
8.4.10.0270.01018.16
8.3.280.0020.00014.05
8.3.270.0090.01117.25
8.3.260.0060.00317.34
8.3.250.0110.00819.53
8.3.240.0110.00817.34
8.3.230.0120.00717.21
8.3.220.0090.00717.41
8.3.210.0360.00716.55
8.3.200.0330.00917.28
8.3.190.0380.00716.88
8.3.180.0390.00517.16
8.3.170.0370.01016.86
8.3.160.0380.00917.12
8.3.150.0390.00816.97
8.3.140.0340.01217.01
8.3.130.0340.00816.89
8.3.120.0320.00816.72
8.3.110.0310.01016.85
8.3.100.0370.01017.12
8.3.90.0470.00716.82
8.3.80.0410.01216.89
8.3.70.0380.01017.00
8.3.60.0420.00717.19
8.3.50.0350.00917.12
8.3.40.0430.01118.07
8.3.30.0270.00718.01
8.3.20.0310.00617.82
8.3.10.0250.00918.11
8.3.00.0120.00817.86
8.2.290.0100.00819.43
8.2.280.0200.00317.10
8.2.270.0260.00517.12
8.2.260.0300.00417.18
8.2.250.0190.00517.01
8.2.240.0330.00616.88
8.2.230.0160.00916.76
8.2.220.0220.00817.38
8.2.210.0230.00616.70
8.2.200.0250.00717.11
8.2.190.0260.00916.74
8.2.180.0330.00716.88
8.2.170.0360.00918.02
8.2.160.0320.00918.18
8.2.150.0320.00417.97
8.2.140.0230.00518.00
8.2.130.0260.00518.13
8.2.120.0300.01118.01
8.2.110.0190.01118.00
8.2.100.0400.00417.87
8.2.90.0290.00817.97
8.2.80.0210.00517.99
8.2.70.0140.00418.13
8.2.60.0150.00518.10
8.2.50.0150.00418.23
8.2.40.0230.00317.98
8.2.30.0250.00217.89
8.2.20.0240.01318.07
8.2.10.0310.00917.97
8.2.00.0310.00818.18

preferences:
29.81 ms | 403 KiB | 5 Q