3v4l.org

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

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

End of function myfunction

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.18 ms | 1396 KiB | 14 Q