3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { public function func($str) { echo $str; } } $c = new C(); $sq = 'hoge'; $dq = "hoge"; $fn = 'func' $c->func('beta'); $c->func($sq); $c->func($dq); $c->$fn('beta'); $c->$fn($sq); $c->$fn($dq);

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.1.70.2330.01014.71

preferences:
137.44 ms | 1394 KiB | 7 Q