3v4l.org

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

Function incrementar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1a3JQ
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:
253.47 ms | 1398 KiB | 15 Q