3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set( 'default_charset', 'UTF-8' ); mb_internal_encoding("ISO-8859-1"); var_dump(preg_replace( '/\s/', '', "\xc2\xa0" )); var_dump(setlocale(LC_CTYPE, "en_US.ISO-8859-1");); echo shell_exec("locale -a");

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)
7.0.10.0030.09020.14
7.0.00.0130.04720.34
5.6.160.0070.08720.55
5.6.150.0030.05018.27
5.6.140.0100.07018.15
5.6.130.0030.04018.17
5.6.120.0170.07021.14
5.6.110.0000.04321.07
5.6.100.0000.04321.02
5.6.90.0130.08020.98
5.6.80.0130.07320.37
5.5.300.0000.04317.98
5.5.290.0030.07717.99
5.5.280.0030.08020.88
5.5.270.0100.08720.87
5.5.260.0000.04720.75
5.5.250.0070.08320.54
5.5.240.0170.07020.11

preferences:
139.08 ms | 1386 KiB | 7 Q