3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test = "a0x5"; if($test+0 === 5){ echo "auth ok\n"; }else{ echo "no auth\n"; } if($test == 0){ echo "admin!"; }else{ echo "user"; }
based on OAUdY
Output for 7.1.0 - 7.3.0beta1
Warning: A non-numeric value encountered in /in/C5CHJ on line 4 no auth admin!
Output for 4.3.0 - 5.3.6, 5.3.8 - 7.0.20
no auth admin!
Output for 5.3.7

Process exited with code 137.