3v4l.org

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