3v4l.org

run code in 300+ PHP versions simultaneously
<?php function aa() { return 100; } if(!empty($b = aa())) { echo($b); }else{ echo 'no'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/S9knZ
function name:  (null)
number of ops:  10
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        ASSIGN                                           ~2      !0, $1
          3        BOOL_NOT                                         ~3      ~2
          4        BOOL_NOT                                         ~4      ~3
          5      > JMPZ                                                     ~4, ->8
    9     6    >   ECHO                                                     !0
          7      > JMP                                                      ->9
   11     8    >   ECHO                                                     'no'
   12     9    > > RETURN                                                   1

Function aa:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/S9knZ
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:
170.24 ms | 1396 KiB | 14 Q