3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.75 ms | 1003 KiB | 16 Q