3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'Hey 🙇‍♂️ boy'; for ($i = 0, $len = grapheme_strlen($text); $i < $len; ++$i) { echo grapheme_substr($text, $i, 1) . "\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.130.0100.01018.56
8.4.120.0150.00521.37
8.4.110.0080.01321.65
8.4.100.0110.00718.69
8.4.90.0120.00818.70
8.4.80.0150.00521.74
8.4.70.0070.01318.75
8.4.60.0150.00718.55
8.4.50.0110.01019.30
8.4.40.0060.01319.62
8.4.30.0260.00719.29
8.4.20.0240.00819.64
8.4.10.0220.00619.42
8.3.260.0120.00917.74
8.3.250.0170.00618.07
8.3.240.0050.00317.82
8.3.230.0060.00417.49
8.3.220.0090.01018.03
8.3.210.0150.00417.63
8.3.200.0130.00717.41
8.3.190.0100.00919.98
8.3.180.0040.00517.57
8.3.170.0190.00019.79
8.3.160.0260.00617.82
8.3.150.0230.01017.72
8.3.140.0250.00717.46
8.3.130.0230.00318.46
8.3.120.0230.00519.58
8.3.110.0240.00618.99
8.3.100.0250.00720.79
8.3.90.0190.00922.17
8.3.80.0190.00817.51
8.3.70.0230.00717.38
8.3.60.0310.01221.60
8.3.50.0160.00621.79
8.3.40.0250.01021.99
8.3.30.0240.00722.18
8.3.20.0240.00822.13
8.3.10.0290.00322.12
8.3.00.0220.00322.24
8.2.290.0120.00721.48
8.2.280.0110.00817.79
8.2.270.0170.01017.81
8.2.260.0190.00718.57
8.2.250.0180.00517.68
8.2.240.0190.01117.55
8.2.230.0160.00720.02
8.2.220.0210.00327.28
8.2.210.0180.00621.96
8.2.200.0170.00817.60
8.2.190.0190.00817.55
8.2.180.0190.00721.80
8.2.170.0240.01322.32
8.2.160.0240.01322.18
8.2.150.0280.00822.27
8.2.140.0200.01122.22
8.2.130.0140.01222.21
8.2.120.0200.00722.33
8.2.110.0280.00922.14
8.2.100.0280.01122.27
8.2.90.0320.00922.19
8.2.80.0290.00822.21
8.2.70.0320.00522.27
8.2.60.0280.01022.14
8.2.50.0330.00422.22
8.2.40.0270.00722.29
8.2.30.0280.00522.15
8.2.20.0310.00322.27
8.2.10.0260.00822.09
8.2.00.0330.00222.21
8.1.330.0200.00623.33
8.1.320.0110.00918.88
8.1.310.0240.00718.18
8.1.300.0250.00518.86
8.1.290.0140.00917.88
8.1.280.0260.01121.60
8.1.270.0290.00722.14
8.1.260.0240.01222.04
8.1.250.0280.00822.03
8.1.240.0240.00822.05
8.1.230.0250.01421.94
8.1.220.0270.00522.18
8.1.210.0240.00421.96
8.1.200.0230.00821.95
8.1.190.0300.00222.04
8.1.180.0310.00322.07
8.1.170.0250.01022.03
8.1.160.0320.00322.00
8.1.150.0320.00822.03
8.1.140.0230.01022.04
8.1.130.0280.01222.13
8.1.120.0230.01122.21
8.1.110.0290.00622.09
8.1.100.0280.00622.12
8.1.90.0240.00822.17
8.1.80.0240.00722.21
8.1.70.0200.01022.06
8.1.60.0250.01122.10
8.1.50.0230.01022.18
8.1.40.0300.00422.25
8.1.30.0290.00322.22
8.1.20.0270.00822.22
8.1.10.0290.00322.18
8.1.00.0270.00722.09

preferences:
49.59 ms | 403 KiB | 5 Q