3v4l.org

run code in 300+ PHP versions simultaneously
<?php// PHP 5.0 or later: $array = []; var_dump(empty($array)); // outputs bool(true) $array = new ArrayObject(); var_dump(empty($array)); // outputs bool(false) // why don't these both produce the same output?<?php

This is an error 404

There are `0` results


preferences:
141.22 ms | 1399 KiB | 7 Q