3v4l.org

run code in 300+ PHP versions simultaneously
<?php function callback($a, $b) { echo "\$a = $a; \$b= $b; "; echo "<br>\n"; return 0; } $array1 = array("first_0", "first_1", "first_2", "first_3", "first_4" ); $array2 = array("second_0", "second_1", "second_2", "second_3", "second_4"); $result = array_udiff($array1, $array2, "callback");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LBeQB
function name:  (null)
number of ops:  9
compiled vars:  !0 = $array1, !1 = $array2, !2 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ASSIGN                                                   !0, <array>
   10     1        ASSIGN                                                   !1, <array>
   11     2        INIT_FCALL                                               'array_udiff'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        SEND_VAL                                                 'callback'
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !2, $5
          8      > RETURN                                                   1

Function callback:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LBeQB
function name:  callback
number of ops:  11
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        ROPE_INIT                                     5  ~3      '%24a+%3D+'
          3        ROPE_ADD                                      1  ~3      ~3, !0
          4        ROPE_ADD                                      2  ~3      ~3, '%3B+%24b%3D+'
          5        ROPE_ADD                                      3  ~3      ~3, !1
          6        ROPE_END                                      4  ~2      ~3, '%3B+'
          7        ECHO                                                     ~2
    5     8        ECHO                                                     '%3Cbr%3E%0A'
    6     9      > RETURN                                                   0
    7    10*     > RETURN                                                   null

End of function callback

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.91 ms | 1395 KiB | 15 Q