3v4l.org

run code in 300+ PHP versions simultaneously
<?php function process($c, $d = 25) { global $e; $retval = $c + $d - $_GET["c"] - $e; return $retval; } $e = 10; echo process(5);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QA0bv
function name:  (null)
number of ops:  6
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ASSIGN                                                   !0, 10
   10     1        INIT_FCALL                                               'process'
          2        SEND_VAL                                                 5
          3        DO_FCALL                                      0  $2      
          4        ECHO                                                     $2
          5      > RETURN                                                   1

Function process:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QA0bv
function name:  process
number of ops:  11
compiled vars:  !0 = $c, !1 = $d, !2 = $e, !3 = $retval
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      25
    5     2        BIND_GLOBAL                                              !2, 'e'
    6     3        ADD                                              ~4      !0, !1
          4        FETCH_R                      global              ~5      '_GET'
          5        FETCH_DIM_R                                      ~6      ~5, 'c'
          6        SUB                                              ~7      ~4, ~6
          7        SUB                                              ~8      ~7, !2
          8        ASSIGN                                                   !3, ~8
    7     9      > RETURN                                                   !3
    8    10*     > RETURN                                                   null

End of function process

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.94 ms | 1397 KiB | 14 Q