3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = "I am a thing, I have the phrase testing in me!"; $criteria = array( 'type' => 'irc', 'function' => 'strpos', 'params' => array( 'strtolower($input)', '\'testing\'' ) ); $params = array(); foreach($criteria['params'] as $param){ $params[] = eval("return ".$param.";"); } print_r($params);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 12
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 12
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/PudtR
function name:  (null)
number of ops:  17
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'
    4     1        ASSIGN                                                   !1, <array>
   13     2        ASSIGN                                                   !2, <array>
   14     3        FETCH_DIM_R                                      ~7      !1, 'params'
          4      > FE_RESET_R                                       $8      ~7, ->12
          5    > > FE_FETCH_R                                               $8, !3, ->12
   15     6    >   CONCAT                                           ~10     'return+', !3
          7        CONCAT                                           ~11     ~10, '%3B'
          8        INCLUDE_OR_EVAL                                  $12     ~11, EVAL
          9        ASSIGN_DIM                                               !2
         10        OP_DATA                                                  $12
   14    11      > JMP                                                      ->5
         12    >   FE_FREE                                                  $8
   18    13        INIT_FCALL                                               'print_r'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.89 ms | 940 KiB | 16 Q