3v4l.org

run code in 300+ PHP versions simultaneously
<?php $expected_array_got_string = 'somestring'; if (empty($expected_array_got_string['some_key'])) { echo 'foo'; } if (@$expected_array_got_string['some_key'])) { echo 'foo'; }
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.20
Parse error: syntax error, unexpected ')' in /in/v1MMc on line 9
Process exited with code 255.

preferences:
162.22 ms | 1395 KiB | 56 Q