3v4l.org

run code in 300+ PHP versions simultaneously
<?php function titoloSito(){ return "Balducci"; } function titoloPagina(){ return "Pagina"; } function testata($stampa = true){ $var = '<title>'.titoloPagina()." - ".titoloSito().'</title>'; if(stampa) echo $var; else return $var; } $var = str_replace("title", "h1", testata(false)); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1lqTb
function name:  (null)
number of ops:  10
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   INIT_FCALL                                               'str_replace'
          1        SEND_VAL                                                 'title'
          2        SEND_VAL                                                 'h1'
          3        INIT_FCALL                                               'testata'
          4        SEND_VAL                                                 <false>
          5        DO_FCALL                                      0  $1      
          6        SEND_VAR                                                 $1
          7        DO_ICALL                                         $2      
          8        ASSIGN                                                   !0, $2
   20     9      > RETURN                                                   1

Function titolosito:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1lqTb
function name:  titoloSito
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E > > RETURN                                                   'Balducci'
    4     1*     > RETURN                                                   null

End of function titolosito

Function titolopagina:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1lqTb
function name:  titoloPagina
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E > > RETURN                                                   'Pagina'
    7     1*     > RETURN                                                   null

End of function titolopagina

Function testata:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1lqTb
function name:  testata
number of ops:  16
compiled vars:  !0 = $stampa, !1 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV_INIT                                        !0      <true>
    9     1        INIT_FCALL                                               'titolopagina'
          2        DO_FCALL                                      0  $2      
          3        CONCAT                                           ~3      '%3Ctitle%3E', $2
          4        CONCAT                                           ~4      ~3, '+-+'
          5        INIT_FCALL                                               'titolosito'
          6        DO_FCALL                                      0  $5      
          7        CONCAT                                           ~6      ~4, $5
          8        CONCAT                                           ~7      ~6, '%3C%2Ftitle%3E'
          9        ASSIGN                                                   !1, ~7
   10    10        FETCH_CONSTANT                                   ~9      'stampa'
         11      > JMPZ                                                     ~9, ->14
   11    12    >   ECHO                                                     !1
         13      > JMP                                                      ->15
   13    14    > > RETURN                                                   !1
   14    15    > > RETURN                                                   null

End of function testata

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.98 ms | 1403 KiB | 18 Q