3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $DataArray = bool; if (is_array($DataArray["ChartData"]) && !empty($DataArray["ChartData"])) { }
Output for 7.2.0
Warning: Use of undefined constant bool - assumed 'bool' (this will throw an Error in a future version of PHP) in /in/gtAeD on line 2 Warning: Illegal string offset 'ChartData' in /in/gtAeD on line 3
Output for 5.4.10 - 7.1.10
Notice: Use of undefined constant bool - assumed 'bool' in /in/gtAeD on line 2 Warning: Illegal string offset 'ChartData' in /in/gtAeD on line 3
Output for 5.3.20 - 5.3.29
Notice: Use of undefined constant bool - assumed 'bool' in /in/gtAeD on line 2