3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test = 'call_user_func_array'; echo ${test}('strtoupper', ('test'));
based on iIVpY
Output for 7.2.0
Warning: Use of undefined constant test - assumed 'test' (this will throw an Error in a future version of PHP) in /in/aTKH6 on line 3 Warning: call_user_func_array() expects parameter 2 to be array, string given in /in/aTKH6 on line 3
Output for 5.3.19 - 7.1.10
Notice: Use of undefined constant test - assumed 'test' in /in/aTKH6 on line 3 Warning: call_user_func_array() expects parameter 2 to be array, string given in /in/aTKH6 on line 3