3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'Ruka'; # Make sure string is in UTF-8 and strip invalid UTF-8 characters $str = mb_convert_encoding($str, 'UTF-8', mb_list_encodings()); print_r($str);

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.0060.00318.59
8.4.120.0130.00720.65
8.4.110.0120.00718.84
8.4.100.0140.00618.32
8.4.90.0160.00518.51
8.4.80.0110.00919.42
8.4.70.0140.00417.97
8.4.60.0110.00518.84
8.4.50.0130.00720.45
8.4.40.0060.01517.77
8.4.30.0120.00620.45
8.4.20.0070.01418.16
8.4.10.0060.00319.59
8.3.260.0120.01016.51
8.3.250.0100.00917.33
8.3.240.0100.00916.23
8.3.230.0070.00416.57
8.3.220.0140.00517.14
8.3.210.0050.00316.66
8.3.200.0050.00416.58
8.3.190.0090.00918.66
8.3.180.0110.00816.63
8.3.170.0040.01417.06
8.3.160.0110.00718.54
8.3.150.0120.00620.75
8.3.140.0060.00316.76
8.3.130.0140.01416.45
8.3.120.0180.00718.47
8.3.110.0130.01116.49
8.3.100.0220.00816.56
8.3.90.0190.00821.64
8.3.80.0230.00417.47
8.3.70.0270.00516.33
8.3.60.0170.00917.13
8.3.50.0130.00517.44
8.3.40.0190.00719.45
8.3.30.0070.00918.11
8.3.20.0100.00220.73
8.3.10.0110.00623.33
8.3.00.0040.00521.69
8.2.290.0070.00817.23
8.2.280.0120.00622.14
8.2.270.0080.00017.48
8.2.260.0060.00318.35
8.2.250.0140.00217.49
8.2.240.0110.00616.70
8.2.230.0090.00418.84
8.2.220.0070.01020.34
8.2.210.0120.00721.73
8.2.200.0150.00816.81
8.2.190.0220.00816.71
8.2.180.0200.00816.71
8.2.170.0250.00618.50
8.2.160.0180.01020.33
8.2.150.0250.00421.62
8.2.140.0230.00221.13
8.2.130.0210.00421.91
8.2.120.0180.00718.70
8.2.110.0160.00519.97
8.2.100.0200.00319.13
8.2.90.0300.00917.91
8.2.80.0210.01217.65
8.2.70.0220.00917.71
8.2.60.0300.00417.76
8.2.50.0390.00017.75
8.2.40.0170.02017.46
8.2.30.0240.00817.45
8.2.20.0240.00617.58
8.2.10.0240.00717.68
8.2.00.0290.01117.64
8.1.330.0070.01216.14
8.1.320.0080.01116.07
8.1.310.0100.00718.52
8.1.300.0210.01116.21
8.1.290.0170.00723.51
8.1.280.0260.00221.05
8.1.270.0210.00318.93
8.1.260.0090.00821.89
8.1.250.0070.00722.77
8.1.240.0090.00419.12
8.1.230.0190.00317.84
8.1.220.0240.00917.29
8.1.210.0250.00716.96
8.1.200.0300.00017.57
8.1.190.0300.00617.32
8.1.180.0290.00717.29
8.1.170.0290.01117.44
8.1.160.0200.01617.21
8.1.150.0200.01617.30
8.1.140.0280.00717.18
8.1.130.0330.00317.20
8.1.120.0300.00317.45
8.1.110.0250.00417.23
8.1.100.0280.00717.23
8.1.90.0330.00317.00
8.1.80.0280.00717.16
8.1.70.0260.00317.45
8.1.60.0230.00917.30
8.1.50.0390.00017.26
8.1.40.0280.01017.40
8.1.30.0250.01317.36
8.1.20.0130.01421.13
8.1.10.0250.00622.91
8.1.00.0150.00721.11
8.0.300.0130.00721.54
8.0.290.0180.01116.66
8.0.280.0170.01316.59
8.0.270.0230.00616.73
8.0.260.0250.00016.59
8.0.250.0120.00416.66
8.0.240.0160.00816.75
8.0.230.0290.00716.75
8.0.220.0250.01116.80
8.0.210.0220.00816.72
8.0.200.0330.00416.66
8.0.190.0380.00716.70
8.0.180.0180.00217.80
8.0.170.0260.01216.57
8.0.160.0280.00716.60
8.0.150.0220.01116.73
8.0.140.0290.00616.43
8.0.130.0290.00416.54
8.0.120.0260.00516.63
8.0.110.0260.00316.77
8.0.100.0310.00316.66
8.0.90.0280.00716.60
8.0.80.0320.00716.44
8.0.70.0320.00316.64
8.0.60.0300.00616.48
8.0.50.0310.00316.57
8.0.30.0280.00716.84
8.0.20.0270.00916.68
8.0.10.0310.00316.59

preferences:
29.79 ms | 403 KiB | 5 Q