3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = function($m){ return $this->waa();} class x { function __construct($x){ var_dump(preg_replace_callback('~.~', $x, 'wazaa')); } function waa(){ return 'meukee'; } } new x($x);

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.10.0070.06020.19
7.0.00.0100.06020.29
5.6.160.0030.08720.39
5.6.150.0030.04718.18
5.6.140.0100.07718.16
5.6.130.0070.05718.26
5.6.120.0030.08321.02
5.6.110.0000.04721.01
5.6.100.0030.04021.01
5.6.90.0130.06720.98
5.6.80.0170.05320.54
5.5.300.0100.07018.05
5.5.290.0030.04717.95
5.5.280.0130.07720.93
5.5.270.0100.08020.77
5.5.260.0070.07020.89
5.5.250.0030.05020.79
5.5.240.0230.07320.17

preferences:
139.64 ms | 1398 KiB | 7 Q