3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test='numbers %2$s %1$s, %3$s'; $tags = __( 'Calendario litúrgico, Evangelio, Evangelio del mes de %2$d del %3$d, Evangelios %3$d, Homilia, Homilias del mes de %2$d del %3$d, Lecturas, Lecturas de %3$d, Lecturas de los %1$s, Lecturas del mes de %2$d del %3$d, Salmo, Salmos del mes de %2$d del %3$d' ); $test=sprintf($tags, test(1), test(2), test(3)); function test( $data ){ return $data*3; } echo $test;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IlbkB
function name:  (null)
number of ops:  23
compiled vars:  !0 = $test, !1 = $tags
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'numbers+%252%24s+%251%24s%2C+%253%24s'
    3     1        INIT_FCALL_BY_NAME                                       '__'
          2        SEND_VAL_EX                                              'Calendario+lit%C3%BArgico%2C+Evangelio%2C+Evangelio+del+mes+de+%252%24d+del+%253%24d%2C+Evangelios+%253%24d%2C+Homilia%2C+Homilias+del+mes+de+%252%24d+del+%253%24d%2C+Lecturas%2C+Lecturas+de+%253%24d%2C+Lecturas+de+los+%251%24s%2C+Lecturas+del+mes+de+%252%24d+del+%253%24d%2C+Salmo%2C+Salmos+del+mes+de+%252%24d+del+%253%24d'
          3        DO_FCALL                                      0  $3      
          4        ASSIGN                                                   !1, $3
    5     5        INIT_FCALL                                               'sprintf'
          6        SEND_VAR                                                 !1
          7        INIT_FCALL_BY_NAME                                       'test'
          8        SEND_VAL_EX                                              1
          9        DO_FCALL                                      0  $5      
         10        SEND_VAR                                                 $5
         11        INIT_FCALL_BY_NAME                                       'test'
         12        SEND_VAL_EX                                              2
         13        DO_FCALL                                      0  $6      
         14        SEND_VAR                                                 $6
         15        INIT_FCALL_BY_NAME                                       'test'
         16        SEND_VAL_EX                                              3
         17        DO_FCALL                                      0  $7      
         18        SEND_VAR                                                 $7
         19        DO_ICALL                                         $8      
         20        ASSIGN                                                   !0, $8
   11    21        ECHO                                                     !0
         22      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IlbkB
function name:  test
number of ops:  4
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    8     1        MUL                                              ~1      !0, 3
          2      > RETURN                                                   ~1
    9     3*     > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.09 ms | 1396 KiB | 15 Q