3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a='1.1.1'; #$a='123.81321321321.321321321321321'; if(preg_match("/^([0-9]+\.?[0-9]+)+$/",$a)){ $b=json_decode($a); # echo "DEBUG"; if($var = $b === NULL){ ($var===true)?$v3=1:NULL; } } echo $var; ?>
based on YX5f1
Output for 5.0.4 - 7.2.0
Notice: Undefined variable: var in /in/utj3a on line 11
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: var in /in/utj3a on line 11