3v4l.org

run code in 300+ PHP versions simultaneously
<?php $template = '<script type="text/javascript" src="%s"></script><noscript><img src="" /></noscript>'; echo sprintf($template, 'http://google.com', 'http://google.com'); $parts = explode('%s', $template); print_r($parts);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/K5dec
function name:  (null)
number of ops:  16
compiled vars:  !0 = $template, !1 = $parts
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Cscript+type%3D%22text%2Fjavascript%22+src%3D%22%25s%22%3E%3C%2Fscript%3E%3Cnoscript%3E%3Cimg+src%3D%22%22+%2F%3E%3C%2Fnoscript%3E'
    3     1        INIT_FCALL                                               'sprintf'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'http%3A%2F%2Fgoogle.com'
          4        SEND_VAL                                                 'http%3A%2F%2Fgoogle.com'
          5        DO_ICALL                                         $3      
          6        ECHO                                                     $3
    5     7        INIT_FCALL                                               'explode'
          8        SEND_VAL                                                 '%25s'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $4      
         11        ASSIGN                                                   !1, $4
    6    12        INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.28 ms | 1394 KiB | 19 Q