3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'Hey 🙇‍♂️ boy'; for ($i = 0, $len = mb_strlen($text); $i < $len; ++$i) { echo mb_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.00917.53
8.4.120.0160.00524.45
8.4.110.0040.00522.61
8.4.100.0050.00518.84
8.4.90.0130.00618.84
8.4.80.0050.00318.50
8.4.70.0080.01017.83
8.4.60.0090.00719.07
8.4.50.0120.00918.51
8.4.40.0100.00718.83
8.4.30.0150.00318.70
8.4.20.0120.00319.55
8.4.10.0080.00019.29
8.3.260.0100.00716.55
8.3.250.0110.00618.79
8.3.240.0130.00617.13
8.3.230.0140.00516.57
8.3.220.0130.00618.94
8.3.210.0090.00616.65
8.3.200.0060.00216.44
8.3.190.0080.00717.18
8.3.180.0110.00817.08
8.3.170.0090.00918.80
8.3.160.0150.00316.92
8.3.150.0060.01217.04
8.3.140.0030.00619.00
8.3.130.0080.00416.81
8.3.120.0070.01118.61
8.3.110.0000.00820.94
8.3.100.0000.01524.06
8.3.90.0040.01526.77
8.3.80.0000.01018.43
8.3.70.0070.01018.18
8.3.60.0290.01125.92
8.3.50.0110.01125.92
8.3.40.0190.01525.92
8.3.30.0190.01325.92
8.3.20.0210.00925.92
8.3.10.0230.00725.92
8.3.00.0230.01025.92
8.2.290.0080.01120.50
8.2.280.0120.00718.11
8.2.270.0000.00817.14
8.2.260.0070.01116.31
8.2.250.0060.00318.38
8.2.240.0080.00417.16
8.2.230.0030.00622.58
8.2.220.0060.00337.54
8.2.210.0140.00026.77
8.2.200.0060.00316.38
8.2.190.0210.00018.16
8.2.180.0100.01025.92
8.2.170.0240.01025.92
8.2.160.0300.00325.92
8.2.150.0250.00725.92
8.2.140.0250.00825.92
8.2.130.0260.01025.92
8.2.120.0280.00825.92
8.2.110.0310.00325.92
8.2.100.0250.00925.92
8.2.90.0300.00725.92
8.2.80.0330.00025.92
8.2.70.0340.00325.92
8.2.60.0200.01325.92
8.2.50.0280.00625.92
8.2.40.0250.00725.92
8.2.30.0230.00725.92
8.2.20.0210.01125.92
8.2.10.0300.00325.92
8.2.00.0220.00725.92
8.1.330.0090.00921.73
8.1.320.0080.01017.93
8.1.310.0070.01018.04
8.1.300.0070.01118.28
8.1.290.0090.00018.88
8.1.280.0310.00325.92
8.1.270.0310.00325.92
8.1.260.0320.00625.92
8.1.250.0410.00025.92
8.1.240.0250.00625.92
8.1.230.0200.01025.92
8.1.220.0280.00725.92
8.1.210.0280.00625.92
8.1.200.0250.00325.92
8.1.190.0090.01825.92
8.1.180.0250.00325.92
8.1.170.0260.00625.92
8.1.160.0220.00625.92
8.1.150.0290.00625.92
8.1.140.0240.01225.92
8.1.130.0190.01125.92
8.1.120.0260.00325.92
8.1.110.0180.01425.92
8.1.100.0310.00025.92
8.1.90.0270.00425.92
8.1.80.0280.00325.92
8.1.70.0220.00625.92
8.1.60.0290.00625.92
8.1.50.0290.00425.92
8.1.40.0310.00325.92
8.1.30.0270.01025.92
8.1.20.0370.00425.92
8.1.10.0340.01425.92
8.1.00.0240.01225.92

preferences:
31.9 ms | 403 KiB | 5 Q