3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tambah = 0; $kurang = 0; function tambah_dan_kurang($a=1,$b=2, &$tambah, &$kurang) { $tambah = $a + $b; $kurang = $b-1; } tambah_dan_kurang(1,2, $tambah, $kurang); echo $tambah."\n"; echo $kurang; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HG4c6
function name:  (null)
number of ops:  12
compiled vars:  !0 = $tambah, !1 = $kurang
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0
    3     1        ASSIGN                                                   !1, 0
   10     2        INIT_FCALL                                               'tambah_dan_kurang'
          3        SEND_VAL                                                 1
          4        SEND_VAL                                                 2
          5        SEND_REF                                                 !0
          6        SEND_REF                                                 !1
          7        DO_FCALL                                      0          
   11     8        CONCAT                                           ~5      !0, '%0A'
          9        ECHO                                                     ~5
   12    10        ECHO                                                     !1
   13    11      > RETURN                                                   1

Function tambah_dan_kurang:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HG4c6
function name:  tambah_dan_kurang
number of ops:  9
compiled vars:  !0 = $a, !1 = $b, !2 = $tambah, !3 = $kurang
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV_INIT                                        !0      1
          1        RECV_INIT                                        !1      2
          2        RECV                                             !2      
          3        RECV                                             !3      
    6     4        ADD                                              ~4      !0, !1
          5        ASSIGN                                                   !2, ~4
    7     6        SUB                                              ~6      !1, 1
          7        ASSIGN                                                   !3, ~6
    8     8      > RETURN                                                   null

End of function tambah_dan_kurang

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.81 ms | 943 KiB | 15 Q