3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subs = array('Hello','World','!'); $string = ">>>?<<<%s>>>?<<<>>>?<<<"; $arr = array('Hello', 'World', '!'); vprintf(str_replace(array('%', '?'), array('%%', '%s'), $string), $subs);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tJA3R
function name:  (null)
number of ops:  13
compiled vars:  !0 = $subs, !1 = $string, !2 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, '%3E%3E%3E%3F%3C%3C%3C%25s%3E%3E%3E%3F%3C%3C%3C%3E%3E%3E%3F%3C%3C%3C'
    4     2        ASSIGN                                                   !2, <array>
    5     3        INIT_FCALL                                               'vprintf'
          4        INIT_FCALL                                               'str_replace'
          5        SEND_VAL                                                 <array>
          6        SEND_VAL                                                 <array>
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $6      
          9        SEND_VAR                                                 $6
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.94 ms | 1394 KiB | 17 Q