3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = function($m){ return eval('$this->waa();'); }; class x { function __construct($x){ var_dump(preg_replace_callback('~.~', $x use ($this), 'wazaa')); } function waa(){ return 'meukee'; } } new x($x);
Output for 7.0.0 - 7.0.1
Parse error: syntax error, unexpected 'use' (T_USE), expecting ',' or ')' in /in/Wfsi9 on line 7
Process exited with code 255.
Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.16
Parse error: syntax error, unexpected 'use' (T_USE) in /in/Wfsi9 on line 7
Process exited with code 255.

preferences:
163.5 ms | 1395 KiB | 25 Q