3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php declare(strict_types=1); $a = 1; $a = true; var_dump($a);
based on teZn3
Output for 7.0.0 - 7.3.0beta1
bool(true)
Output for 5.6.0 - 5.6.24
Warning: Unsupported declare 'strict_types' in /in/saLAF on line 2 bool(true)