3v4l.org

run code in 300+ PHP versions simultaneously
<?php $paintings = [ ["24ef9-70076-4358c-48386.jpg", "La Donna Gravida", "649"], ["a7972-065a9-4c0f9-723d1.jpg", "Madonna and Child with the Book", "1254"], ["b054c-df208-0f600-e884e.jpg", "Madonna del Granduca", "1457"] ]; $painting = 'a7972-065a9-4c0f9-723d1.jpg'; var_export( array_values( array_filter( $paintings, fn($row) => $row[0] !== $painting ) ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jmcoi
function name:  (null)
number of ops:  15
compiled vars:  !0 = $paintings, !1 = $painting
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    8     1        ASSIGN                                                   !1, 'a7972-065a9-4c0f9-723d1.jpg'
   10     2        INIT_FCALL                                               'var_export'
   11     3        INIT_FCALL                                               'array_values'
   12     4        INIT_FCALL                                               'array_filter'
   13     5        SEND_VAR                                                 !0
   14     6        DECLARE_LAMBDA_FUNCTION                          ~4      [0]
          7        BIND_LEXICAL                                             ~4, !1
   15     8        SEND_VAL                                                 ~4
   12     9        DO_ICALL                                         $5      
   15    10        SEND_VAR                                                 $5
   11    11        DO_ICALL                                         $6      
   15    12        SEND_VAR                                                 $6
   10    13        DO_ICALL                                                 
   17    14      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jmcoi
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $row, !1 = $painting
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   RECV                                             !0      
          1        BIND_STATIC                                              !1
          2        FETCH_DIM_R                                      ~2      !0, 0
          3        IS_NOT_IDENTICAL                                 ~3      !1, ~2
          4      > RETURN                                                   ~3
   15     5*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.44 ms | 1012 KiB | 16 Q