3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = "s"; echo printf("%2$s %s %3$s %2$s %s, %s, %s$s$s", "a", "b", "c", "d", "f", "g", "h");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bB5iK
function name:  (null)
number of ops:  22
compiled vars:  !0 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 's'
    3     1        INIT_FCALL                                               'printf'
          2        ROPE_INIT                                     9  ~3      '%252'
          3        ROPE_ADD                                      1  ~3      ~3, !0
          4        ROPE_ADD                                      2  ~3      ~3, '+%25s+%253'
          5        ROPE_ADD                                      3  ~3      ~3, !0
          6        ROPE_ADD                                      4  ~3      ~3, '+%252'
          7        ROPE_ADD                                      5  ~3      ~3, !0
          8        ROPE_ADD                                      6  ~3      ~3, '+%25s%2C+%25s%2C+%25s'
          9        ROPE_ADD                                      7  ~3      ~3, !0
         10        ROPE_END                                      8  ~2      ~3, !0
         11        SEND_VAL                                                 ~2
         12        SEND_VAL                                                 'a'
         13        SEND_VAL                                                 'b'
         14        SEND_VAL                                                 'c'
         15        SEND_VAL                                                 'd'
         16        SEND_VAL                                                 'f'
         17        SEND_VAL                                                 'g'
         18        SEND_VAL                                                 'h'
         19        DO_ICALL                                         $8      
         20        ECHO                                                     $8
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.43 ms | 1395 KiB | 15 Q