3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "noël"; echo $str, "\n"; echo implode(array_reverse(grapheme_str_split($str))),"\n"; echo grapheme_substr($str, 0,3),"\n"; echo grapheme_strlen($str),"\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.4.140.0160.00518.71
8.4.130.0040.00518.70
8.4.120.0100.01021.72
8.4.110.0150.01019.95
8.4.100.0150.00718.68
8.4.90.0100.01118.57
8.4.80.0120.00720.43
8.4.70.0140.00318.68
8.4.60.0110.01018.59
8.4.50.0110.01218.68
8.4.40.0320.00718.75
8.4.30.0320.00818.44
8.4.20.0300.00618.47
8.4.10.0320.00818.41
8.3.270.0140.00716.73
8.3.260.0120.00816.78
8.3.250.0100.01018.64
8.3.240.0050.00416.71
8.3.230.0130.00516.56
8.3.220.0130.00618.55
8.3.210.0060.00316.62
8.3.200.0090.01016.44
8.3.190.0120.00716.53
8.3.180.0120.00716.48
8.3.170.0240.00516.79
8.3.160.0340.00716.44
8.3.150.0340.00916.51
8.3.140.0350.01016.43
8.3.130.0310.00616.43
8.3.120.0280.00716.53
8.3.110.0320.00916.59
8.3.100.0370.00716.52
8.3.90.0310.01016.39
8.3.80.0360.01016.47
8.3.70.0350.01016.38
8.3.60.0380.00716.37
8.3.50.0360.00816.43
8.3.40.0320.00917.46
8.3.30.0320.00717.48
8.3.20.0300.00917.42
8.3.10.0270.01017.50
8.3.00.0210.01017.45
8.2.290.0090.00918.79
8.2.280.0130.00616.89
8.2.270.0230.01116.73
8.2.260.0330.00716.62
8.2.250.0300.00916.63
8.2.240.0280.01116.56
8.2.230.0290.00816.50
8.2.220.0290.00916.61
8.2.210.0270.01016.56
8.2.200.0290.00916.55
8.2.190.0300.00616.56
8.2.180.0250.01116.55
8.2.170.0310.00817.68
8.2.160.0350.00517.69
8.2.150.0300.01017.49
8.2.140.0330.00717.41
8.2.130.0350.00817.33
8.2.120.0310.00817.38
8.2.110.0310.00917.53
8.2.100.0340.00617.56
8.2.90.0300.00917.56
8.2.80.0320.00717.50
8.2.70.0340.00517.43
8.2.60.0310.00817.35
8.2.50.0280.01117.33
8.2.40.0280.00717.49
8.2.30.0280.00917.48
8.2.20.0270.00717.30
8.2.10.0260.00817.49
8.2.00.0260.01017.46
8.1.320.0130.00516.25

preferences:
39.62 ms | 403 KiB | 5 Q