3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $_GET['a']="system"; $_GET['b']="ls -la"; foreach(get_defined_vars() as $x=>$y)$y[a]($y[b]); ?>
based on fn3nj
Output for 7.2.0
Warning: Use of undefined constant a - assumed 'a' (this will throw an Error in a future version of PHP) in /in/dNud6 on line 4 Warning: Use of undefined constant b - assumed 'b' (this will throw an Error in a future version of PHP) in /in/dNud6 on line 4 Warning: Use of undefined constant a - assumed 'a' (this will throw an Error in a future version of PHP) in /in/dNud6 on line 4 Notice: Undefined index: a in /in/dNud6 on line 4 Fatal error: Uncaught Error: Function name must be a string in /in/dNud6:4 Stack trace: #0 {main} thrown in /in/dNud6 on line 4
Process exited with code 255.
Output for 7.0.0 - 7.1.10
Notice: Use of undefined constant a - assumed 'a' in /in/dNud6 on line 4 Notice: Use of undefined constant b - assumed 'b' in /in/dNud6 on line 4 Notice: Use of undefined constant a - assumed 'a' in /in/dNud6 on line 4 Notice: Undefined index: a in /in/dNud6 on line 4 Fatal error: Uncaught Error: Function name must be a string in /in/dNud6:4 Stack trace: #0 {main} thrown in /in/dNud6 on line 4
Process exited with code 255.
Output for 5.4.0 - 5.6.28
Notice: Use of undefined constant a - assumed 'a' in /in/dNud6 on line 4 Notice: Use of undefined constant b - assumed 'b' in /in/dNud6 on line 4 Notice: Use of undefined constant a - assumed 'a' in /in/dNud6 on line 4 Notice: Undefined index: a in /in/dNud6 on line 4 Fatal error: Function name must be a string in /in/dNud6 on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Notice: Use of undefined constant a - assumed 'a' in /in/dNud6 on line 4 Notice: Undefined index: a in /in/dNud6 on line 4 Fatal error: Function name must be a string in /in/dNud6 on line 4
Process exited with code 255.
Output for 5.0.0 - 5.2.17
Notice: Use of undefined constant a - assumed 'a' in /in/dNud6 on line 4 Notice: Undefined index: a in /in/dNud6 on line 4 Fatal error: Function name must be a string in /in/dNud6 on line 4
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Notice: Use of undefined constant a - assumed 'a' in /in/dNud6 on line 4 Notice: Undefined index: a in /in/dNud6 on line 4 Fatal error: Call to undefined function: () in /in/dNud6 on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Notice: Use of undefined constant a - assumed 'a' in /in/dNud6 on line 4 Notice: Undefined index: a in /in/dNud6 on line 4 Fatal error: Call to undefined function: () in /in/dNud6 on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Notice: Use of undefined constant a - assumed 'a' in /in/dNud6 on line 4 Notice: Undefined index: a in /in/dNud6 on line 4 Fatal error: Call to undefined function: () in /in/dNud6 on line 4