3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $value = "0.7.4"; if(!empty($value)) { $jsonValue = json_decode($value); var_dump($jsonValue); if(!empty($jsonValue)) $value = $jsonValue; } print_r( $value,false); ?>
based on gX4vM
Output for 5.4.0 - 7.2.8
NULL 0.7.4