3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f($s) { printf("---%*s%*s---\n",10+strlen(s)/2,s,10-strlen(s)/2,""); } f("uno"); f("quattro");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LOAA2
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'f'
          1        SEND_VAL                                                 'uno'
          2        DO_FCALL                                      0          
    8     3        INIT_FCALL                                               'f'
          4        SEND_VAL                                                 'quattro'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Function f:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LOAA2
function name:  f
number of ops:  18
compiled vars:  !0 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'printf'
          2        SEND_VAL                                                 '---%25%2As%25%2As---%0A'
          3        FETCH_CONSTANT                                   ~1      's'
          4        STRLEN                                           ~2      ~1
          5        DIV                                              ~3      ~2, 2
          6        ADD                                              ~4      10, ~3
          7        SEND_VAL                                                 ~4
          8        FETCH_CONSTANT                                   ~5      's'
          9        SEND_VAL                                                 ~5
         10        FETCH_CONSTANT                                   ~6      's'
         11        STRLEN                                           ~7      ~6
         12        DIV                                              ~8      ~7, 2
         13        SUB                                              ~9      10, ~8
         14        SEND_VAL                                                 ~9
         15        SEND_VAL                                                 ''
         16        DO_ICALL                                                 
    5    17      > RETURN                                                   null

End of function f

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.1 ms | 1398 KiB | 17 Q