3v4l.org

run code in 300+ PHP versions simultaneously
<?php function stringAppend($str) { $str = $str."append"; //không có return } function stringPrepend($str) { $str = "prepend".$str; } $aString = "PHP"; echo stringPrepend(stringAppend($aString));// Không có return function updateValue(&$number) { $number = $number +1; } $val = 9; echo updateValue(&$val);

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.2.40.1480.01117.71
7.2.30.2100.01317.79
7.2.20.2480.01317.63
7.2.10.0230.01317.66
7.2.00.1680.00717.80
7.1.160.1770.01416.59
7.1.150.1680.01016.50
7.1.140.0930.01716.36
7.1.130.1560.01416.75
7.1.120.2310.01216.60
7.1.110.1920.01315.98
7.1.100.1190.01516.26
7.1.90.2330.01015.98
7.1.80.1830.00715.86
7.1.70.2060.01015.03
7.1.60.2510.01633.22
7.1.50.2320.01432.88
7.1.40.2250.01632.21
7.1.30.2140.01332.50
7.1.20.2210.01432.47
7.1.10.2220.01614.43
7.1.00.2470.01314.46

preferences:
141.52 ms | 1394 KiB | 7 Q