3v4l.org

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

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

End of function get

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.71 ms | 942 KiB | 15 Q