3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $casArray ("2", "a", "33"); foreach ($casArray as $caskey => $casval) { if (is_int($casval)) { $cas_uin = $casval; } } echo "<script type='text/javascript'>alert('$cas_uin'); </script>";
based on SoINf
Output for 7.0.0 - 7.2.0
Notice: Undefined variable: casArray in /in/2Euns on line 2 Fatal error: Uncaught Error: Function name must be a string in /in/2Euns:2 Stack trace: #0 {main} thrown in /in/2Euns on line 2
Process exited with code 255.
Output for 5.3.20 - 5.6.28
Notice: Undefined variable: casArray in /in/2Euns on line 2 Fatal error: Function name must be a string in /in/2Euns on line 2
Process exited with code 255.