3v4l.org

run code in 300+ PHP versions simultaneously
<?php $opt1 = array( array( 'title' => "damn" ), array( 'title' => "php" ), array( 'title' => "fucks" ), array( 'title' => "up" ), array( 'title' => "my" ), array( 'title' => "code" ), ); $opt2 = array( ); array_udiff($opt1, $opt2, function($e1, $e2){ echo "1";var_dump($e1); echo "2";var_dump($e2); });
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ktuiX
function name:  (null)
number of ops:  9
compiled vars:  !0 = $opt1, !1 = $opt2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   22     1        ASSIGN                                                   !1, <array>
   26     2        INIT_FCALL                                               'array_udiff'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FktuiX%3A26%240'
   29     6        SEND_VAL                                                 ~4
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FktuiX%3A26%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ktuiX
function name:  {closure}
number of ops:  11
compiled vars:  !0 = $e1, !1 = $e2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   26     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   27     2        ECHO                                                     '1'
          3        INIT_FCALL                                               'var_dump'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                                 
   28     6        ECHO                                                     '2'
          7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
   29    10      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FktuiX%3A26%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.3 ms | 1395 KiB | 17 Q