3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $object = (object) array( Array(), 'hello' => 'world', ); $length = vprintf("%s %s\n", $object); var_dump($length);
Output for 4.3.7 - 4.4.9, 5.4.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Array to string conversion in /in/rZ9pL on line 5 Array world int(12)
Output for 5.0.0 - 5.3.29
Array world int(12)
Output for 4.3.0 - 4.3.6
Notice: Array to string conversion in /in/rZ9pL on line 5 Array world NULL