3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php ini_set('display_errors', 1); var_dump((string)[123]); var_dump((int)[123]); var_dump((float)[123]); var_dump((bool)[123]);
based on 9AJAj
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.21.3, 7.0.0 - 7.3.0beta1
Notice: Array to string conversion in /in/ibKnL on line 5 string(5) "Array" int(1) float(1) bool(true)
Output for hhvm-3.22.0
Notice: Array to string conversion in /in/ibKnL on line -1 string(5) "Array" int(1) float(1) bool(true)