3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.34 ms | 1395 KiB | 19 Q