3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo (array)"string" . "\n"; echo (string)array() . "\n"; echo (float)array() . "\n"; echo (int)array() . "\n";
Output for 5.4.0 - 7.1.0
Notice: Array to string conversion in /in/mFQKa on line 3 Array Notice: Array to string conversion in /in/mFQKa on line 4 Array 0 0
Output for 5.0.0 - 5.3.29
Array Array 0 0
Output for 4.3.0 - 4.4.9
Array Notice: Array to string conversion in /in/mFQKa on line 4 Array 0 0