3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s='<?php $s=4; echo str_replace(2+2,chr(39).$s.chr(39),$s); ?>'; echo str_replace(2+2,chr(39).$s.chr(39),$s); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/s96hT
function name:  (null)
number of ops:  10
compiled vars:  !0 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ASSIGN                                                   !0, '%3C%3Fphp+%24s%3D4%3B+echo+str_replace%282%2B2%2Cchr%2839%29.%24s.chr%2839%29%2C%24s%29%3B+%3F%3E'
          1        INIT_FCALL                                               'str_replace'
          2        SEND_VAL                                                 4
          3        CONCAT                                           ~2      '%27', !0
          4        CONCAT                                           ~3      ~2, '%27'
          5        SEND_VAL                                                 ~3
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $4      
          8        ECHO                                                     $4
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.36 ms | 1394 KiB | 15 Q