3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo 'Null strlen: '.strlen(null); echo 'False strlen: '.strlen(false); echo 'Obj strlen: '.strlen(new stdClass);
based on 67W1A
Output for 5.3.0 - 7.2.0
Null strlen: 0False strlen: 0 Warning: strlen() expects parameter 1 to be string, object given in /in/LoMgS on line 5 Obj strlen:
Output for 5.2.0 - 5.2.17
Null strlen: 0False strlen: 0 Catchable fatal error: Object of class stdClass could not be converted to string in /in/LoMgS on line 5
Process exited with code 255.
Output for 5.0.0 - 5.1.6
Null strlen: 0False strlen: 0 Notice: Object of class stdClass to string conversion in /in/LoMgS on line 5 Obj strlen: 6
Output for 4.3.0 - 4.4.9
Null strlen: 0False strlen: 0 Notice: Object to string conversion in /in/LoMgS on line 5 Obj strlen: 6