3v4l.org

run code in 300+ PHP versions simultaneously
<?php function suma() { static $num1 = 0; echo $num1."\n"; $num1++; } function otro() { echo "otra ejecucion"."\n"; } //$i = 0; for ($i = 0; $i < 5; $i++, suma(), otro()) { }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 2
Branch analysis from position: 9
Branch analysis from position: 2
filename:       /in/9ihJW
function name:  (null)
number of ops:  10
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->7
          2    >   PRE_INC                                                  !0
          3        INIT_FCALL                                               'suma'
          4        DO_FCALL                                      0          
          5        INIT_FCALL                                               'otro'
          6        DO_FCALL                                      0          
          7    >   IS_SMALLER                                               !0, 5
          8      > JMPNZ                                                    ~5, ->2
   15     9    > > RETURN                                                   1

Function suma:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9ihJW
function name:  suma
number of ops:  5
compiled vars:  !0 = $num1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   BIND_STATIC                                              !0
    5     1        CONCAT                                           ~1      !0, '%0A'
          2        ECHO                                                     ~1
    6     3        PRE_INC                                                  !0
    7     4      > RETURN                                                   null

End of function suma

Function otro:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9ihJW
function name:  otro
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   ECHO                                                     'otra+ejecucion%0A'
   11     1      > RETURN                                                   null

End of function otro

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.8 ms | 1402 KiB | 15 Q