3v4l.org

run code in 300+ PHP versions simultaneously
<?php function someFunction() { return 0; } if (someFunction() == 0) echo "right"; elseif (someFunction() == '0') echo "wrong";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 11
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/s4UFL
function name:  (null)
number of ops:  12
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'somefunction'
          1        DO_FCALL                                      0  $0      
          2        IS_EQUAL                                                 $0, 0
          3      > JMPZ                                                     ~1, ->6
    6     4    >   ECHO                                                     'right'
          5      > JMP                                                      ->11
    7     6    >   INIT_FCALL                                               'somefunction'
          7        DO_FCALL                                      0  $2      
          8        IS_EQUAL                                                 $2, '0'
          9      > JMPZ                                                     ~3, ->11
    8    10    >   ECHO                                                     'wrong'
         11    > > RETURN                                                   1

Function somefunction:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/s4UFL
function name:  someFunction
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E > > RETURN                                                   0
    4     1*     > RETURN                                                   null

End of function somefunction

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.78 ms | 1397 KiB | 15 Q