3v4l.org

run code in 300+ PHP versions simultaneously
<?php function safeEval($haystack,$needle) { str_ireplace($needle,"' '",$haystack); //$return = $haystack; return eval($haystack); //return; } $string = array("Hello","drop","Kyle"); $find = array("Drop"); $retun = $string; safeEval($string,$find);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MXGqd
function name:  (null)
number of ops:  8
compiled vars:  !0 = $string, !1 = $find, !2 = $retun
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   ASSIGN                                                   !0, <array>
   11     1        ASSIGN                                                   !1, <array>
   12     2        ASSIGN                                                   !2, !0
   13     3        INIT_FCALL                                               'safeeval'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !1
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

Function safeeval:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MXGqd
function name:  safeEval
number of ops:  10
compiled vars:  !0 = $haystack, !1 = $needle
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        INIT_FCALL                                               'str_ireplace'
          3        SEND_VAR                                                 !1
          4        SEND_VAL                                                 '%27+%27'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
    6     7        INCLUDE_OR_EVAL                                  $3      !0, EVAL
          8      > RETURN                                                   $3
    8     9*     > RETURN                                                   null

End of function safeeval

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.42 ms | 1389 KiB | 16 Q