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";

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.0110.01122.77
8.4.150.0010.00114.05
8.4.140.0200.01118.07
8.4.130.0070.00318.42
8.4.120.0160.00421.28
8.4.110.0040.00619.53
8.4.100.0140.00718.23
8.4.90.0100.01218.29
8.4.80.0040.00420.02
8.4.70.0450.01017.88
8.4.60.0340.01118.24
8.4.50.0330.00818.23
8.4.40.0330.01017.70
8.4.30.0350.01418.01
8.4.20.0370.01218.02
8.4.10.0360.01417.77
8.3.280.0020.00014.05
8.3.270.0120.00717.35
8.3.260.0110.00816.76
8.3.250.0120.00619.66
8.3.240.0130.00716.95
8.3.230.0090.01117.08
8.3.220.0110.00717.11
8.3.210.0390.00716.77
8.3.200.0270.00817.20
8.3.190.0370.00617.09
8.3.180.0340.00917.08
8.3.170.0390.00816.94
8.3.160.0420.00816.91
8.3.150.0360.00617.09
8.3.140.0430.00617.15
8.3.130.0460.00816.88
8.3.120.0330.00716.81
8.3.110.0350.00717.21
8.3.100.0350.01117.05
8.3.90.0360.00717.12
8.3.80.0340.01316.96
8.3.70.0380.01116.90
8.3.60.0370.01017.09
8.3.50.0300.00517.02
8.3.40.0440.01117.99
8.3.30.0310.00717.70
8.3.20.0320.00818.20
8.3.10.0290.00918.04
8.3.00.0280.01017.99
8.2.290.0130.00619.73
8.2.280.0330.00317.30
8.2.270.0300.00917.37
8.2.260.0350.01017.30
8.2.250.0290.00817.14
8.2.240.0250.00817.04
8.2.230.0290.01016.99
8.2.220.0290.01117.04
8.2.210.0300.00816.77
8.2.200.0300.01016.95
8.2.190.0320.00817.25
8.2.180.0280.01116.85
8.2.170.0340.00818.39
8.2.160.0340.00818.29
8.2.150.0300.01218.06
8.2.140.0330.00717.95
8.2.130.0350.01218.06
8.2.120.0320.01018.21
8.2.110.0300.01318.11
8.2.100.0330.00718.25
8.2.90.0330.00818.00
8.2.80.0390.00318.18
8.2.70.0320.00918.00
8.2.60.0400.00618.13
8.2.50.0310.00717.88
8.2.40.0440.00717.88
8.2.30.0330.00617.88
8.2.20.0310.00617.98
8.2.10.0310.00918.07
8.2.00.0250.00818.14

preferences:
16.09 ms | 403 KiB | 5 Q