3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump( NULL, (int)NULL, FALSE, (int)FALSE, TRUE, (int)TRUE, NULL, (array)NULL, FALSE, (array)FALSE, TRUE, (array)TRUE, NULL, (string)NULL, FALSE, (string)FALSE, TRUE, (string)TRUE, NULL, (bool)(string)NULL, FALSE, (bool)(string)FALSE, TRUE, (bool)(string)TRUE );
based on 9cAtQ
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
NULL int(0) bool(false) int(0) bool(true) int(1) NULL array(0) { } bool(false) array(1) { [0]=> bool(false) } bool(true) array(1) { [0]=> bool(true) } NULL string(0) "" bool(false) string(0) "" bool(true) string(1) "1" NULL bool(false) bool(false) bool(false) bool(true) bool(true)
Output for hhvm-3.10.0

Process exited with code 153.