3v4l.org

run code in 300+ PHP versions simultaneously
<?php // conversion btw boolean and string values var_dump("", $b = (bool)"", (string) $b); echo "\n"; var_dump("0", $b = (bool)"0", (string) $b);

preferences:
39.48 ms | 402 KiB | 5 Q