3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = array('one', 'two', 'three'); $array2 = array('one', 'two', 'three'); function validate($array, $array2) { return array_diff($array, $array2); } var_dump(validate($array1, $array2));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pBTie
function name:  (null)
number of ops:  10
compiled vars:  !0 = $array1, !1 = $array2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN                                                   !1, <array>
   11     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'validate'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !1
          6        DO_FCALL                                      0  $4      
          7        SEND_VAR                                                 $4
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Function validate:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pBTie
function name:  validate
number of ops:  8
compiled vars:  !0 = $array, !1 = $array2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    8     2        INIT_FCALL                                               'array_diff'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $2      
          6      > RETURN                                                   $2
    9     7*     > RETURN                                                   null

End of function validate

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.26 ms | 1397 KiB | 18 Q