3v4l.org

run code in 300+ PHP versions simultaneously
<?php $breadcrumbs = [ ['Home', 'homepage.html'], ['About', 'aboutpage.html'], ['Contact', 'contactpage.html'] ]; $remove = ['Home']; var_export( array_udiff( $breadcrumbs, array_chunk($remove, 1), fn($a, $b) => $a[0] <=> $b[0] ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BGTnH
function name:  (null)
number of ops:  16
compiled vars:  !0 = $breadcrumbs, !1 = $remove
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1        ASSIGN                                                   !1, <array>
   11     2        INIT_FCALL                                               'var_export'
   12     3        INIT_FCALL                                               'array_udiff'
   13     4        SEND_VAR                                                 !0
   14     5        INIT_FCALL                                               'array_chunk'
          6        SEND_VAR                                                 !1
          7        SEND_VAL                                                 1
          8        DO_ICALL                                         $4      
          9        SEND_VAR                                                 $4
   15    10        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FBGTnH%3A15%240'
   16    11        SEND_VAL                                                 ~5
         12        DO_ICALL                                         $6      
         13        SEND_VAR                                                 $6
         14        DO_ICALL                                                 
   17    15      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FBGTnH%3A15%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BGTnH
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        FETCH_DIM_R                                      ~2      !0, 0
          3        FETCH_DIM_R                                      ~3      !1, 0
          4        SPACESHIP                                        ~4      ~2, ~3
          5      > RETURN                                                   ~4
   16     6*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FBGTnH%3A15%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.02 ms | 1406 KiB | 19 Q