3v4l.org

run code in 300+ PHP versions simultaneously
<?php $types = array('string', 1, '1', '', '0', 0, 0.0, array(), new StdClass, true, false, null); foreach ($types as $type) { print_r((array) $type); }

preferences:
42.02 ms | 402 KiB | 5 Q