3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = new stdClass(); $test->falsy = false; $test->truthy = true; if(isset($test->falsy)) { echo 'Works for falsy'; } if(isset($test->truthy)) { echo 'Works for truthy'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
Branch analysis from position: 10
filename:       /in/0Tba6
function name:  (null)
number of ops:  14
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $1      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    3     3        ASSIGN_OBJ                                               !0, 'falsy'
          4        OP_DATA                                                  <false>
    4     5        ASSIGN_OBJ                                               !0, 'truthy'
          6        OP_DATA                                                  <true>
    6     7        ISSET_ISEMPTY_PROP_OBJ                                   !0, 'falsy'
          8      > JMPZ                                                     ~6, ->10
    7     9    >   ECHO                                                     'Works+for+falsy'
   10    10    >   ISSET_ISEMPTY_PROP_OBJ                                   !0, 'truthy'
         11      > JMPZ                                                     ~7, ->13
   11    12    >   ECHO                                                     'Works+for+truthy'
   12    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.64 ms | 1397 KiB | 13 Q