3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'Some text bla-bla #date# other text #date# some other #date#'; echo preg_replace_callback('/#date#/', function () { return date('Y-m-d', strtotime( '+'.mt_rand(0,45).' days')); }, $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.3.10.0470.00715.29
7.3.00.0400.01315.03
7.2.130.0420.00715.56
7.2.120.0610.00015.42
7.2.110.0450.00315.35
7.2.100.0670.00315.46
7.2.90.0590.00715.47
7.2.80.0580.00615.55
7.2.70.0530.01015.41
7.2.60.0440.00615.49
7.2.50.0400.00715.61
7.2.40.0410.00615.35
7.2.30.0410.00015.55
7.2.20.0410.00315.45
7.2.10.0540.00715.48
7.2.00.0500.00315.49
7.1.250.0600.01014.21

preferences:
50.08 ms | 403 KiB | 5 Q