3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tmp = "thi$ & - that!?"; $tmp = preg_quote(tmp$, "/"); echo $tmp ?>

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.0030.08320.29
5.6.160.0170.07720.46
5.6.150.0070.05718.19
5.6.140.0200.06718.21
5.6.130.0070.08018.18
5.6.120.0070.07721.14
5.6.110.0000.05721.04
5.6.100.0070.06721.08
5.6.90.0100.08720.96
5.6.80.0030.08720.37
5.5.300.0070.04018.02
5.5.290.0170.05717.95
5.5.280.0070.04020.89
5.5.270.0170.07320.86
5.5.260.0170.07020.72
5.5.250.0100.06320.68
5.5.240.0200.07020.34

preferences:
142.63 ms | 1394 KiB | 7 Q