3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo twice(10); const TWO=2; function twice($n) { return TWO*$n; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/d0QsP
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'twice'
          1        SEND_VAL_EX                                              10
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
    3     4        DECLARE_CONST                                            'TWO', 2
    4     5      > RETURN                                                   1

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

End of function twice

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.58 ms | 1393 KiB | 13 Q