3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function test($n) { $r = $n-$n; $b = ($r===0?true:false); return $b; } $b = test('a12'); echo $b;
based on Yp9F4
Output for 7.1.5 - 7.2.0
Warning: A non-numeric value encountered in /in/Y6i2I on line 5 1
Output for 7.1.0
Warning: A non-numeric value encountered in /in/Y6i2I on line 5 Warning: A non-numeric value encountered in /in/Y6i2I on line 5 1
Output for 5.3.19 - 7.0.20
1