3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test['index'] = 'fdngnkfdklgn'; var_dump(empty($test['keinIndex']), empty($test['index'])); $test['index'] = ''; var_dump(empty($test['index'])); $object = new Standard(); var_dump(empty($object));
Output for 7.0.0 - 7.2.0
bool(true) bool(false) bool(true) Fatal error: Uncaught Error: Class 'Standard' not found in /in/4YbDo:7 Stack trace: #0 {main} thrown in /in/4YbDo on line 7
Process exited with code 255.
Output for hhvm-3.11.1, hhvm-3.13.2 - 3.17.3
bool(true) bool(false) bool(true) Fatal error: Uncaught Error: Class undefined: Standard in /in/4YbDo:7 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.12.14

Process exited with code 137.
Output for hhvm-3.10.1
bool(true) bool(false) bool(true) Fatal error: Class undefined: Standard in /in/4YbDo on line 7
Process exited with code 255.
Output for 5.0.0 - 5.6.30
bool(true) bool(false) bool(true) Fatal error: Class 'Standard' not found in /in/4YbDo on line 7
Process exited with code 255.
Output for 4.3.2 - 4.4.9
bool(true) bool(false) bool(true) Fatal error: Cannot instantiate non-existent class: standard in /in/4YbDo on line 7
Process exited with code 255.
Output for 4.3.0 - 4.3.1
bool(true) bool(false) bool(true) Fatal error: Cannot instantiate non-existent class: standard in /in/4YbDo on line 7