3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "hier steht <br> ein zeilenum\nbruch"; print_r(str_replace('\n', '<br>', $string);

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.00.0170.07320.05
5.6.160.0100.05720.52
5.6.150.0070.06018.27
5.6.140.0130.05718.28
5.6.130.0030.08018.23
5.6.120.0100.04021.00
5.6.110.0070.04020.98
5.6.100.0100.05020.97
5.6.90.0100.06020.96
5.6.80.0070.07020.35
5.5.300.0000.06717.99
5.5.290.0070.06718.03
5.5.280.0030.04320.82
5.5.270.0130.05020.79
5.5.260.0070.07720.75
5.5.250.0100.04720.49
5.5.240.0130.07320.11

preferences:
142.3 ms | 1386 KiB | 7 Q