3v4l.org

run code in 300+ PHP versions simultaneously
<?php $item = mb_convert_encoding( '¨l', 'ISO-8859-1', 'UTF-8' ); $encoding = 'UTF-8'; $ret = ''; $max = mb_strlen($item ?? '', $encoding); for ($i = 0; $i < $max; $i++) { $char = mb_substr($item, $i, 1, $encoding); $up = mb_strtoupper($char, $encoding); $low = mb_strtolower($char, $encoding); $ret .= ($up != $low) ? '[' . $up . $low . ']' : $char; } var_dump($ret);

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.120.0030.00620.72
8.3.110.0310.00416.55
8.3.100.0500.00416.39
8.3.90.0430.00016.34
8.3.80.0210.00316.50
8.3.70.0190.00516.38
8.3.60.0330.00716.50
8.3.50.0220.00916.25
8.3.40.0290.00917.25
8.3.30.0340.00017.50
8.3.20.0180.01417.46
8.3.10.0330.00516.88
8.3.00.0170.00317.25
8.2.240.0060.00918.90
8.2.230.0280.00616.68
8.2.220.0310.00816.40
8.2.210.0320.00716.65
8.2.200.0330.00916.50
8.2.190.0340.00816.71
8.2.180.0360.01016.32
8.2.170.0480.00017.50
8.2.160.0300.01017.63
8.2.150.0210.00617.50
8.2.140.0200.00417.48
8.2.130.0270.00017.38
8.2.120.0270.00617.73
8.2.110.0180.01217.50
8.2.100.0250.00317.75
8.2.90.0140.00717.50
8.2.80.0050.01517.38
8.2.70.0120.00917.50
8.2.60.0190.00317.50
8.2.50.0210.00017.63
8.2.40.0190.00017.63
8.2.30.0170.00317.38
8.2.20.0150.00317.61
8.2.10.0160.00317.38
8.2.00.0060.01217.50
8.1.300.0100.00618.42
8.1.290.0100.00816.23
8.1.280.0070.01016.00
8.1.270.0140.00417.23
8.1.260.0160.00417.11
8.1.250.0040.01117.25
8.1.240.0160.00317.38
8.1.230.0100.00717.13
8.1.220.0110.00617.38
8.1.210.0100.00717.23
8.1.200.0170.00316.75
8.1.190.0130.00517.46
8.1.180.0130.00616.63
8.1.170.0150.00417.25
8.1.160.0090.00617.09
8.1.150.0150.00316.72
8.1.140.0180.00017.34
8.1.130.0120.00417.46
8.1.120.0120.00517.00
8.1.110.0110.00417.00
8.1.100.0100.00717.38
8.1.90.0120.00617.38
8.1.80.0120.00416.88
8.1.70.0080.00817.50
8.1.60.0210.00017.13
8.1.50.0000.02016.88
8.1.40.0150.00516.96
8.1.30.0130.00417.38
8.1.20.0130.00517.10
8.1.10.0150.00317.24
8.1.00.0120.00817.38

preferences:
28.08 ms | 403 KiB | 5 Q