3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php interface boolean {} class true implements boolean {} class false implements boolean {} $true = new true; $false = new false; var_dump(new true); var_dump(new false); var_dump($true instanceof true); var_dump($false instanceof false); var_dump((bool) $true); var_dump((bool) $false);
based on i6ikQ
Output for 5.4.0 - 5.6.28
object(true)#3 (0) { } object(false)#3 (0) { } bool(true) bool(true) bool(true) bool(true)