3v4l.org

run code in 300+ PHP versions simultaneously
<?php function aa($i){ $a="aaaa"; $b="bbbb"; if($i){ return $a; }else{ return $b; } } echo aa();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/d5X6j
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'aa'
          1        DO_FCALL                                      0  $0      
          2        ECHO                                                     $0
          3      > RETURN                                                   1

Function aa:
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 = 62) Position 1 = -2
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/d5X6j
function name:  aa
number of ops:  8
compiled vars:  !0 = $i, !1 = $a, !2 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        ASSIGN                                                   !1, 'aaaa'
    5     2        ASSIGN                                                   !2, 'bbbb'
    6     3      > JMPZ                                                     !0, ->6
    7     4    > > RETURN                                                   !1
          5*       JMP                                                      ->7
    9     6    > > RETURN                                                   !2
   11     7*     > RETURN                                                   null

End of function aa

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.45 ms | 1397 KiB | 14 Q