3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test='numbers %2$s %1$s, %3$s'; $test=sprintf($test, 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/rpklS
function name:  (null)
number of ops:  19
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'numbers+%252%24s+%251%24s%2C+%253%24s'
    4     1        INIT_FCALL                                               'sprintf'
          2        SEND_VAR                                                 !0
          3        INIT_FCALL_BY_NAME                                       'test'
          4        SEND_VAL_EX                                              1
          5        DO_FCALL                                      0  $2      
          6        SEND_VAR                                                 $2
          7        INIT_FCALL_BY_NAME                                       'test'
          8        SEND_VAL_EX                                              2
          9        DO_FCALL                                      0  $3      
         10        SEND_VAR                                                 $3
         11        INIT_FCALL_BY_NAME                                       'test'
         12        SEND_VAL_EX                                              3
         13        DO_FCALL                                      0  $4      
         14        SEND_VAR                                                 $4
         15        DO_ICALL                                         $5      
         16        ASSIGN                                                   !0, $5
   10    17        ECHO                                                     !0
         18      > RETURN                                                   1

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

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.61 ms | 1395 KiB | 15 Q