3v4l.org

run code in 300+ PHP versions simultaneously
<?php function Operation() { $result = 5; return $result; } function Operation2($result) { $all = $result +1; echo $all; } $result = Operation(); Operation2($result); // output: 6
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7Fevg
function name:  (null)
number of ops:  7
compiled vars:  !0 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   INIT_FCALL                                               'operation'
          1        DO_FCALL                                      0  $1      
          2        ASSIGN                                                   !0, $1
   16     3        INIT_FCALL                                               'operation2'
          4        SEND_VAR                                                 !0
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Function operation:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7Fevg
function name:  Operation
number of ops:  3
compiled vars:  !0 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, 5
    6     1      > RETURN                                                   !0
    7     2*     > RETURN                                                   null

End of function operation

Function operation2:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7Fevg
function name:  Operation2
number of ops:  5
compiled vars:  !0 = $result, !1 = $all
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
   11     1        ADD                                              ~2      !0, 1
          2        ASSIGN                                                   !1, ~2
   12     3        ECHO                                                     !1
   13     4      > RETURN                                                   null

End of function operation2

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
260.44 ms | 1000 KiB | 15 Q