3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Tell PHP that we're using UTF-8 strings until the end of the script mb_internal_encoding('UTF-8'); // Tell PHP that we'll be outputting UTF-8 to the browser mb_http_output('UTF-8'); // Our UTF-8 test string $string = 'Êl síla erin lû e-govaned vîn.'; $decoded_stuff = utf8_encode("Müller"); echo $decoded_stuff"; $string2 = utf8_encode($string); echo "$string2"; echo "$string"; ?><!doctype html> <html> <head> <meta charset="UTF-8" /> <title>UTF-8 test page</title> </head> <body> <?php foreach($result as $row){ print($row->Body); // This should correctly output our transformed UTF-8 string to the browser } ?> </body> </html>

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)
5.4.350.0180.07612.01
5.4.340.0220.05812.01
5.4.320.0230.12012.50
5.4.310.0150.09112.49
5.4.300.0200.08212.50
5.4.290.0350.09312.50
5.4.280.0160.07212.39
5.4.270.0070.05212.39
5.4.260.0270.08612.39
5.4.250.0100.04612.39
5.4.240.0070.04612.39
5.4.230.0140.07212.38
5.4.220.0150.09212.38
5.4.210.0120.05612.38
5.4.200.0110.07012.38
5.4.190.0170.06912.38
5.4.180.0240.06912.38
5.4.170.0190.07512.38
5.4.160.0260.14112.38
5.4.150.0130.06612.38
5.4.140.0110.15012.07
5.4.130.0170.07312.05
5.4.120.0200.07112.02
5.4.110.0310.12312.02
5.4.100.0190.06212.01
5.4.90.0220.07812.01
5.4.80.0190.08812.01
5.4.70.0060.05212.01
5.4.60.0090.04412.01
5.4.50.0080.04812.00
5.4.40.0110.04411.99
5.4.30.0160.06711.99
5.4.20.0080.07711.99
5.4.10.0060.05411.99
5.4.00.0150.06011.48
5.3.290.0150.05212.80
5.3.280.0150.08512.71
5.3.270.0170.06512.72
5.3.260.0140.05312.71
5.3.250.0120.04812.72
5.3.240.0110.05012.72
5.3.230.0200.03912.71
5.3.220.0180.05312.68
5.3.210.0140.04912.68
5.3.200.0150.05112.68
5.3.190.0100.05512.68
5.3.180.0120.04612.67
5.3.170.0150.06412.67
5.3.160.0160.05112.68
5.3.150.0080.07412.67
5.3.140.0130.07212.66
5.3.130.0100.13612.66
5.3.120.0350.09812.66
5.3.110.0220.09912.66
5.3.100.0190.09612.12
5.3.90.0100.05312.08
5.3.80.0120.05012.07
5.3.70.0120.05112.07
5.3.60.0110.05412.06
5.3.50.0090.10612.00
5.3.40.0220.07812.00
5.3.30.0090.07911.95
5.3.20.0180.04411.72
5.3.10.0080.04511.70
5.3.00.0150.05411.69
5.2.170.0110.0619.18
5.2.160.0030.0609.18
5.2.150.0140.0769.18
5.2.140.0080.0769.18
5.2.130.0080.0419.15
5.2.120.0060.0419.14
5.2.110.0110.0489.14
5.2.100.0090.0389.14
5.2.90.0080.0449.14
5.2.80.0100.0579.14
5.2.70.0080.0489.14
5.2.60.0070.0509.09
5.2.50.0050.0489.06
5.2.40.0070.0409.04
5.2.30.0130.0389.02
5.2.20.0090.0399.00
5.2.10.0100.0358.92
5.2.00.0110.0448.79
5.1.60.0070.0338.07
5.1.50.0090.0318.06
5.1.40.0130.0268.04
5.1.30.0100.0328.39
5.1.20.0080.0378.41
5.1.10.0060.0338.14
5.1.00.0100.0408.14
5.0.50.0070.0266.62
5.0.40.0070.0266.48
5.0.30.0100.0386.29
5.0.20.0080.0246.26
5.0.10.0080.0266.24
5.0.00.0090.0366.24
4.4.90.0030.0224.78
4.4.80.0100.0154.76
4.4.70.0070.0184.75
4.4.60.0090.0154.75
4.4.50.0080.0184.77
4.4.40.0050.0324.71
4.4.30.0080.0154.76
4.4.20.0040.0214.84
4.4.10.0070.0234.84
4.4.00.0080.0304.76
4.3.110.0070.0174.66
4.3.100.0070.0184.67
4.3.90.0050.0194.64
4.3.80.0070.0354.58
4.3.70.0040.0204.63
4.3.60.0050.0194.63
4.3.50.0050.0204.63
4.3.40.0030.0324.54
4.3.30.0060.0243.29
4.3.20.0040.0263.27
4.3.10.0090.0203.22
4.3.00.0030.0207.21

preferences:
148.71 ms | 1394 KiB | 7 Q