3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.71 ms | 1395 KiB | 17 Q