3v4l.org

run code in 300+ PHP versions simultaneously
<?php f(&x){ $x[] = 'x'; } $t = array(); f($t); var_dump($t);

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)
5.4.50.0100.05016.23
5.4.40.0100.05316.32
5.4.30.0070.07016.44
5.4.20.0100.03716.20
5.4.10.0070.07716.28
5.4.00.0030.04315.80
5.3.150.0100.05714.48
5.3.140.0100.07714.37
5.3.130.0000.05014.52
5.3.120.0000.06014.51
5.3.110.0130.07314.41
5.3.100.0000.08014.00
5.3.90.0030.05013.98
5.3.80.0030.03713.98
5.3.70.0030.04013.98
5.3.60.0030.05713.93
5.3.50.0070.05713.86
5.3.40.0030.08013.71
5.3.30.0070.06313.84
5.3.20.0100.07013.67
5.3.10.0030.07313.62
5.3.00.0100.07313.59

preferences:
137.48 ms | 939 KiB | 8 Q