3v4l.org

run code in 500+ PHP versions simultaneously
<?php $search=array("<",">","!=","<=",">="); $value = "name >= vivek "; function test($item, $key, $str) { if( strpos($str, $item) !== FALSE ) { echo "$item found in \"$str\"\n"; } } array_walk($search, 'test', $value);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6B0WX
function name:  (null)
number of ops:  8
compiled vars:  !0 = $search, !1 = $value
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    4     1        ASSIGN                                                       !1, 'name+%3E%3D+vivek+'
   14     2        INIT_FCALL                                                   'array_walk'
          3        SEND_REF                                                     !0
          4        SEND_VAL                                                     'test'
          5        SEND_VAR                                                     !1
          6        DO_ICALL                                                     
          7      > RETURN                                                       1

Function test:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 11
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/6B0WX
function name:  test
number of ops:  12
compiled vars:  !0 = $item, !1 = $key, !2 = $str
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    6     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
          2        RECV                                                 !2      
    9     3        FRAMELESS_ICALL_2                strpos              ~3      !2, !0
          4        TYPE_CHECK                                      1018          ~3
          5      > JMPZ                                                         ~4, ->11
   10     6    >   ROPE_INIT                                         4  ~6      !0
          7        ROPE_ADD                                          1  ~6      ~6, '+found+in+%22'
          8        ROPE_ADD                                          2  ~6      ~6, !2
          9        ROPE_END                                          3  ~5      ~6, '%22%0A'
         10        ECHO                                                         ~5
   12    11    > > RETURN                                                       null

End of function test

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
229.5 ms | 3079 KiB | 14 Q