3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.8 ms | 1395 KiB | 17 Q