3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 1; $c = 0; $d = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; $b = 2; add($a, $b); function add($a, $b) { return $a + $b; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/arcrM
function name:  (null)
number of ops:  9
compiled vars:  !0 = $a, !1 = $c, !2 = $d, !3 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 1
    4     1        ASSIGN                                                   !1, 0
    5     2        ASSIGN                                                   !2, <array>
    6     3        ASSIGN                                                   !3, 2
    8     4        INIT_FCALL_BY_NAME                                       'add'
          5        SEND_VAR_EX                                              !0
          6        SEND_VAR_EX                                              !3
          7        DO_FCALL                                      0          
   12     8      > RETURN                                                   1

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

End of function add

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.2 ms | 1393 KiB | 13 Q