3v4l.org

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

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

End of function aa

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.7 ms | 1397 KiB | 14 Q