3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $myFirstVar; $mySecondVar = 'hi'; if(isset($mySecondVar)){ echo 'The var is set!'; }else { echo 'The var is not set!'; }
based on ODPsM
Output for 5.6.30, 7.0.30 - 7.3.0beta1
The var is set!
Output for hhvm-3.22.0
Notice: Undefined variable: myFirstVar in /in/esLmk on line -1 The var is set!
Output for hhvm-3.18.5 - 3.21.3
Notice: Undefined variable: myFirstVar in /in/esLmk on line 2 The var is set!