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.3.70.0150.00316.48
8.3.60.0040.01218.06
8.3.50.0070.00718.43
8.3.40.0070.00721.64
8.3.30.0040.01118.77
8.3.20.0040.00424.18
8.3.10.0100.00725.33
8.3.00.0000.00826.16
8.2.180.0060.01116.88
8.2.170.0150.00619.21
8.2.160.0070.00722.96
8.2.150.0050.00225.66
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0060.00319.81
8.2.110.0060.00322.26
8.2.100.0070.00320.64
8.1.280.0180.00025.92
8.1.270.0030.00620.52
8.1.260.0000.00926.35
8.1.250.0040.00428.09
8.1.240.0060.00320.77
8.1.230.0110.00018.50
8.1.20.0060.01522.96
8.1.10.0200.00624.31
8.1.00.0140.00621.60
8.0.300.0110.00822.36
8.0.180.0100.00218.46
8.0.00.0150.00518.59
7.4.330.0110.00318.44
7.4.70.0160.00318.44

preferences:
46.24 ms | 400 KiB | 5 Q