3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = "test"; $b = true; echo (int)$a; var_dump($a & $b);
based on YbVCW
Output for 7.1.0 - 7.3.0beta1
0 Warning: A non-numeric value encountered in /in/asF6U on line 7 int(0)
Output for 5.6.0 - 5.6.30, hhvm-3.12.14 - 3.17.3, 7.0.0 - 7.0.20
0int(0)