3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'needle' => 'needle in haystack text', 'Need' => 'another needle', 'fine' => 'refined', 'found' => 'Foundation', '' => 'non-empty haystack', 'missing' => 'not here', 'This is 0 in a haystack!', ]; var_export( array_filter($array, 'str_contains', ARRAY_FILTER_USE_BOTH) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/F5c6C
function name:  (null)
number of ops:  10
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   13     1        INIT_FCALL                                               'var_export'
   14     2        INIT_FCALL                                               'array_filter'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 'str_contains'
          5        SEND_VAL                                                 1
          6        DO_ICALL                                         $2      
          7        SEND_VAR                                                 $2
   13     8        DO_ICALL                                                 
   15     9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
250.45 ms | 1009 KiB | 15 Q