3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array(); if (isset($a[array()])) { echo 'okay'; }
Output for 5.2.3 - 5.6.21, 7.0.0 - 7.1.0
Warning: Illegal offset type in isset or empty in /in/3OpRZ on line 4
Output for hhvm-3.10.0 - 3.12.0
Warning: Invalid operand type was used: Invalid type used as key in /in/3OpRZ on line 4
Output for 5.1.0 - 5.2.2
<br /> <b>Warning</b>: Illegal offset type in isset or empty in <b>/in/3OpRZ</b> on line <b>4</b><br />
Output for 5.0.0 - 5.0.5
<br /> <b>Warning</b>: Illegal offset type in unset in <b>/in/3OpRZ</b> on line <b>4</b><br />
Output for 4.3.0 - 4.4.9
<br /> <b>Warning</b>: Illegal offset type in <b>/in/3OpRZ</b> on line <b>4</b><br />