3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $input = "I am a thing, I have the phrase testing in me!"; $criteria = array( 'type' => 'irc', 'function' => 'strpos', 'params' => array( '$input;', '"testing";' ) ); $params = array(); foreach($criteria['params'] as $param){ $params[] = eval($param); } print_r($params);
based on sALoD
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 10
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 10
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/4iLAJ
function name:  (null)
number of ops:  15
compiled vars:  !0 = $input, !1 = $criteria, !2 = $params, !3 = $param
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   ASSIGN                                                   !0, 'I+am+a+thing%2C+I+have+the+phrase+testing+in+me%21'
   5     1        ASSIGN                                                   !1, <array>
  13     2        ASSIGN                                                   !2, <array>
  14     3        FETCH_DIM_R                                      $7      !1, 'params'
         4      > FE_RESET_R                                       $8      $7, ->10
         5    > > FE_FETCH_R                                               $8, !3, ->10
  15     6    >   INCLUDE_OR_EVAL                                  $10     !3, EVAL
         7        ASSIGN_DIM                                               !2
         8        OP_DATA                                                  $10
         9      > JMP                                                      ->5
        10    >   FE_FREE                                                  $8
  18    11        INIT_FCALL                                               'print_r'
        12        SEND_VAR                                                 !2
        13        DO_ICALL                                                 
        14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0