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'; foreach ($paintings as $index => $row) { if ($row[0] === $painting) { unset($paintings[$index]); break; // unless multiple rows might qualify } } var_export(array_values($paintings));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 11
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 11
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 11
Branch analysis from position: 11
filename:       /in/ZilUc
function name:  (null)
number of ops:  19
compiled vars:  !0 = $paintings, !1 = $painting, !2 = $row, !3 = $index
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      > FE_RESET_R                                       $6      !0, ->11
          3    > > FE_FETCH_R                                       ~7      $6, !2, ->11
          4    >   ASSIGN                                                   !3, ~7
   11     5        FETCH_DIM_R                                      ~9      !2, 0
          6        IS_IDENTICAL                                             !1, ~9
          7      > JMPZ                                                     ~10, ->10
   12     8    >   UNSET_DIM                                                !0, !3
   13     9      > JMP                                                      ->11
   10    10    > > JMP                                                      ->3
         11    >   FE_FREE                                                  $6
   16    12        INIT_FCALL                                               'var_export'
         13        INIT_FCALL                                               'array_values'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $11     
         16        SEND_VAR                                                 $11
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.41 ms | 1006 KiB | 15 Q