3v4l.org

run code in 300+ 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 = 9, Position 2 = 14
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/6B0WX
function name:  test
number of ops:  15
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        INIT_FCALL                                               'strpos'
          4        SEND_VAR                                                 !2
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $3      
          7        TYPE_CHECK                                  1018          $3
          8      > JMPZ                                                     ~4, ->14
   10     9    >   ROPE_INIT                                     4  ~6      !0
         10        ROPE_ADD                                      1  ~6      ~6, '+found+in+%22'
         11        ROPE_ADD                                      2  ~6      ~6, !2
         12        ROPE_END                                      3  ~5      ~6, '%22%0A'
         13        ECHO                                                     ~5
   12    14    > > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.34 ms | 1400 KiB | 17 Q