3v4l.org

run code in 500+ 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.5.30.0100.00818.56
8.5.20.0220.00718.07
8.5.10.0240.00816.79
8.5.00.0260.00619.01
8.4.180.0250.01120.80
8.4.170.0240.00922.17
8.4.160.0130.01021.43
8.4.150.0190.00517.39
8.4.140.0280.00618.69
8.4.130.0210.00618.75
8.4.120.0260.01020.22
8.4.110.0270.00819.36
8.4.100.0250.00818.80
8.4.90.0260.00718.65
8.4.80.0220.01019.52
8.4.70.0290.00618.64
8.4.60.0230.01018.76
8.4.50.0230.01118.66
8.4.40.0330.00718.73
8.4.30.0330.00818.46
8.4.20.0310.00718.49
8.4.10.0330.00818.42
8.3.300.0250.00919.47
8.3.290.0220.00419.58
8.3.280.0230.00818.36
8.3.270.0250.01016.70
8.3.260.0210.01016.72
8.3.250.0240.00817.66
8.3.240.0220.00716.69
8.3.230.0230.00816.64
8.3.220.0230.00817.65
8.3.210.0200.00716.65
8.3.200.0220.01016.58
8.3.190.0220.00916.63
8.3.180.0240.00816.63
8.3.170.0270.00616.78
8.3.160.0350.00716.47
8.3.150.0340.00816.53
8.3.140.0350.01016.46
8.3.130.0320.00616.47
8.3.120.0280.00816.55
8.3.110.0320.00816.60
8.3.100.0370.00716.54
8.3.90.0330.01016.43
8.3.80.0370.00916.50
8.3.70.0360.01016.43
8.3.60.0380.00716.41
8.3.50.0360.00816.46
8.3.40.0320.00917.58
8.3.30.0320.00717.55
8.3.20.0300.00917.49
8.3.10.0270.00917.53
8.3.00.0210.01017.49
8.2.300.0290.00818.91
8.2.290.0200.01017.73
8.2.280.0190.00916.78
8.2.270.0240.01116.72
8.2.260.0330.00716.63
8.2.250.0300.00916.64
8.2.240.0290.01116.58
8.2.230.0290.00916.53
8.2.220.0280.01016.62
8.2.210.0280.01016.58
8.2.200.0300.00916.57
8.2.190.0310.00616.58
8.2.180.0260.01116.57
8.2.170.0300.00817.75
8.2.160.0340.00617.73
8.2.150.0300.01017.55
8.2.140.0330.00717.46
8.2.130.0350.00717.42
8.2.120.0320.00817.45
8.2.110.0320.00817.60
8.2.100.0330.00617.61
8.2.90.0310.00817.61
8.2.80.0320.00717.55
8.2.70.0330.00617.49
8.2.60.0310.00817.44
8.2.50.0290.01017.37
8.2.40.0280.00717.56
8.2.30.0280.00817.55
8.2.20.0270.00717.34
8.2.10.0270.00817.54
8.2.00.0270.00917.53

preferences:
43.37 ms | 848 KiB | 5 Q