3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(empty($undefined)); $expected_array_got_string = 'somestring'; if (empty($expected_array_got_string['some_key'])) { echo 'foo'; } if (@$expected_array_got_string['some_key']) { echo 'bar'; }

preferences:
40.19 ms | 402 KiB | 5 Q