3v4l.org

run code in 300+ PHP versions simultaneously
<?php $search = "phpinfo()/e\0apple"; echo preg_replace("/".$search."/", $search, "apple"); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dBrZL
function name:  (null)
number of ops:  10
compiled vars:  !0 = $search
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'phpinfo%28%29%2Fe%00apple'
    3     1        INIT_FCALL                                               'preg_replace'
          2        CONCAT                                           ~2      '%2F', !0
          3        CONCAT                                           ~3      ~2, '%2F'
          4        SEND_VAL                                                 ~3
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 'apple'
          7        DO_ICALL                                         $4      
          8        ECHO                                                     $4
    4     9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.89 ms | 1393 KiB | 15 Q