3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=1; echo $a; echo $b; $b=2; call($a); call($b); function call($var){ echo $var; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Por38
function name:  (null)
number of ops:  11
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1
    3     1        ECHO                                                     !0
    4     2        ECHO                                                     !1
    5     3        ASSIGN                                                   !1, 2
    7     4        INIT_FCALL_BY_NAME                                       'call'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0          
    8     7        INIT_FCALL_BY_NAME                                       'call'
          8        SEND_VAR_EX                                              !1
          9        DO_FCALL                                      0          
   12    10      > RETURN                                                   1

Function call:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Por38
function name:  call
number of ops:  3
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
   11     1        ECHO                                                     !0
   12     2      > RETURN                                                   null

End of function call

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.72 ms | 1393 KiB | 13 Q