3v4l.org

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

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

End of function factorial

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.62 ms | 1397 KiB | 14 Q