3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test() { return null; } function call() { $blockedRel = test(); var_dump($blockedRel); var_dump(isset($blockedRel)); var_dump(isset($b)); } call();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RK1MZ
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   INIT_FCALL                                               'call'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

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

End of function test

Function call:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RK1MZ
function name:  call
number of ops:  15
compiled vars:  !0 = $blockedRel, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'test'
          1        DO_FCALL                                      0  $2      
          2        ASSIGN                                                   !0, $2
   10     3        INIT_FCALL                                               'var_dump'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                                 
   11     6        INIT_FCALL                                               'var_dump'
          7        ISSET_ISEMPTY_CV                                 ~5      !0
          8        SEND_VAL                                                 ~5
          9        DO_ICALL                                                 
   13    10        INIT_FCALL                                               'var_dump'
         11        ISSET_ISEMPTY_CV                                 ~7      !1
         12        SEND_VAL                                                 ~7
         13        DO_ICALL                                                 
   14    14      > RETURN                                                   null

End of function call

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.83 ms | 1398 KiB | 17 Q