3v4l.org

run code in 300+ PHP versions simultaneously
<?php $vars = array( true, false, null, 'string', array(), array(1),array(1, 2, 3), new stdClass() ); foreach ($vars as $var) { echo "------------\r"; var_export($var); echo "\r"; echo "!empty() = "; var_dump(!empty($var)); echo "count() = "; var_dump(count($var)); }

preferences:
53.56 ms | 405 KiB | 5 Q