3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = ""; $word = "mysql_query('Lalala'); 1||1/e\0"; // Slightly contrived example, but let's pretend we're // case-normalizing a user-provided word, and forgot to // preg_quote $text = preg_replace('/'.$word.'/i', $word, $text);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Udoq2
function name:  (null)
number of ops:  11
compiled vars:  !0 = $text, !1 = $word
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, ''
    3     1        ASSIGN                                                   !1, 'mysql_query%28%27Lalala%27%29%3B+1%7C%7C1%2Fe%00'
    8     2        INIT_FCALL                                               'preg_replace'
          3        CONCAT                                           ~4      '%2F', !1
          4        CONCAT                                           ~5      ~4, '%2Fi'
          5        SEND_VAL                                                 ~5
          6        SEND_VAR                                                 !1
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $6      
          9        ASSIGN                                                   !0, $6
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.6 ms | 1385 KiB | 15 Q