3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $xyz[]="a"; var_dump($xyz); if($xyz != '') { echo "xyz is not empty! good to go!\n"; $abc = strcmp($xyz, 'my cool password keep it secrete please'); }
based on eNS7e
Output for 5.3.0 - 7.1.0
array(1) { [0]=> string(1) "a" } xyz is not empty! good to go! Warning: strcmp() expects parameter 1 to be string, array given in /in/kN7AE on line 9
Output for 4.3.0 - 5.2.17
array(1) { [0]=> string(1) "a" } xyz is not empty! good to go! Notice: Array to string conversion in /in/kN7AE on line 9