3v4l.org

run code in 300+ PHP versions simultaneously
<?php function a(&$a){$a = null;} $a = 1; var_dump($a += a($a)); var_dump($a); $b = 1; var_dump($b = $b + a($b)); var_dump($b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6ciiK
function name:  (null)
number of ops:  24
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, 1
    6     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'a'
          3        SEND_REF                                                 !0
          4        DO_FCALL                                      0  $3      
          5        ASSIGN_OP                                     1  ~4      !0, $3
          6        SEND_VAL                                                 ~4
          7        DO_ICALL                                                 
    7     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                                 
    9    11        ASSIGN                                                   !1, 1
   10    12        INIT_FCALL                                               'var_dump'
         13        INIT_FCALL                                               'a'
         14        SEND_REF                                                 !1
         15        DO_FCALL                                      0  $8      
         16        ADD                                              ~9      !1, $8
         17        ASSIGN                                           ~10     !1, ~9
         18        SEND_VAL                                                 ~10
         19        DO_ICALL                                                 
   11    20        INIT_FCALL                                               'var_dump'
         21        SEND_VAR                                                 !1
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

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

End of function a

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
197.23 ms | 1402 KiB | 17 Q