3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $formData = array(); echo '$formData[\'chain_id\'] = \'0\';'; echo "\n"; $formData['chain_id'] = '0'; echo 'empty($formData[\'chain_id]\'): '; var_dump(empty($formData['chain_id'])); echo "\n"; echo '$formData[\'chain_id\'] === \'0\': '; var_dump($formData['chain_id'] === '0');
Output for 4.3.0 - 7.1.0
$formData['chain_id'] = '0'; empty($formData['chain_id]'): bool(true) $formData['chain_id'] === '0': bool(true)