3v4l.org

run code in 300+ PHP versions simultaneously
<?php function incrementar($a) { return $a+1; } for ($i = 0; $i < 100000; $i++) $a = incrementar($a); for ($i = 0; $i < 100000; $i++) $a = $a+1;
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 = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 11
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 11
Branch analysis from position: 16
Branch analysis from position: 11
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/Uu2Ch
function name:  (null)
number of ops:  17
compiled vars:  !0 = $i, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->7
          2    >   INIT_FCALL                                               'incrementar'
          3        SEND_VAR                                                 !1
          4        DO_FCALL                                      0  $3      
          5        ASSIGN                                                   !1, $3
          6        PRE_INC                                                  !0
          7    >   IS_SMALLER                                               !0, 100000
          8      > JMPNZ                                                    ~6, ->2
    6     9    >   ASSIGN                                                   !0, 0
         10      > JMP                                                      ->14
         11    >   ADD                                              ~8      !1, 1
         12        ASSIGN                                                   !1, ~8
         13        PRE_INC                                                  !0
         14    >   IS_SMALLER                                               !0, 100000
         15      > JMPNZ                                                    ~11, ->11
         16    > > RETURN                                                   1

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

End of function incrementar

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.25 ms | 1403 KiB | 14 Q