3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "wow"; echo "mom"; echo "adarsh"; $a=1; $b=2; $c=$a+$b; echo "$c"; <?php $string = "foo"."\n"."bar"; echo nl2br($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.20.0330.06320.10
7.0.10.0070.06320.28
7.0.00.0030.04720.22
5.6.170.0330.06720.62
5.6.160.0070.07720.71
5.6.150.0070.06318.25
5.6.140.0000.08318.15
5.6.130.0070.04018.15
5.6.120.0100.06321.00
5.6.110.0030.05020.98
5.6.100.0000.08321.10
5.6.90.0170.06320.88
5.6.80.0000.09020.53
5.5.310.0200.06020.34
5.5.300.0070.05017.99
5.5.290.0100.03718.01
5.5.280.0070.06720.73
5.5.270.0000.04320.75
5.5.260.0070.04020.96
5.5.250.0070.08320.52
5.5.240.0030.04020.28

preferences:
140.08 ms | 1394 KiB | 7 Q