3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.79 ms | 1395 KiB | 21 Q