3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array('a' => array(1,2,3)); echo isset($a['a']); echo "-"; echo print($a['a']); echo "-"; echo strlen($a['a']);
based on k0OIg
Output for 5.4.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
1- Notice: Array to string conversion in /in/1rFAf on line 5 Array1- Warning: strlen() expects parameter 1 to be string, array given in /in/1rFAf on line 7
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.3.0 - 5.3.29
1-Array1- Warning: strlen() expects parameter 1 to be string, array given in /in/1rFAf on line 7
Output for 4.3.0 - 5.2.17
1-Array1- Notice: Array to string conversion in /in/1rFAf on line 7 5