3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = '<?php $x = \'*\'; $x = str_replace(chr(0x2A), $x, $x); $x = addslashes($x); echo $x; ?>'; $x = str_replace(chr(0x2A), $x, $x); $x = addslashes($x); echo $x; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sTdAr
function name:  (null)
number of ops:  13
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3C%3Fphp%0A%24x+%3D+%27%2A%27%3B%0A%24x+%3D+str_replace%28chr%280x2A%29%2C+%24x%2C+%24x%29%3B%0A%24x+%3D+addslashes%28%24x%29%3B%0Aecho+%24x%3B%0A%3F%3E'
    8     1        INIT_FCALL                                               'str_replace'
          2        SEND_VAL                                                 '%2A'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
    9     7        INIT_FCALL                                               'addslashes'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $4      
         10        ASSIGN                                                   !0, $4
   10    11        ECHO                                                     !0
   11    12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.08 ms | 1394 KiB | 17 Q