3v4l.org

run code in 300+ PHP versions simultaneously
<?php function bla() { $a = 10; $b = 20; $c = 0; for ($i = 0; $i < 51000; $i++) { $c = (($a * $i) + $b * 2); $c++; } return $c; } var_dump(bla() + bla() + bla () + bla() + bla () + bla());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/X3tJt
function name:  (null)
number of ops:  21
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'bla'
          2        DO_FCALL                                      0  $0      
          3        INIT_FCALL                                               'bla'
          4        DO_FCALL                                      0  $1      
          5        ADD                                              ~2      $0, $1
          6        INIT_FCALL                                               'bla'
          7        DO_FCALL                                      0  $3      
          8        ADD                                              ~4      ~2, $3
          9        INIT_FCALL                                               'bla'
         10        DO_FCALL                                      0  $5      
         11        ADD                                              ~6      ~4, $5
         12        INIT_FCALL                                               'bla'
         13        DO_FCALL                                      0  $7      
         14        ADD                                              ~8      ~6, $7
         15        INIT_FCALL                                               'bla'
         16        DO_FCALL                                      0  $9      
         17        ADD                                              ~10     ~8, $9
         18        SEND_VAL                                                 ~10
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Function bla:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 5
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 5
Branch analysis from position: 13
Branch analysis from position: 5
filename:       /in/X3tJt
function name:  bla
number of ops:  15
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 10
    5     1        ASSIGN                                                   !1, 20
    6     2        ASSIGN                                                   !2, 0
    8     3        ASSIGN                                                   !3, 0
          4      > JMP                                                      ->11
    9     5    >   MUL                                              ~8      !0, !3
          6        MUL                                              ~9      !1, 2
          7        ADD                                              ~10     ~8, ~9
          8        ASSIGN                                                   !2, ~10
   10     9        PRE_INC                                                  !2
    8    10        PRE_INC                                                  !3
         11    >   IS_SMALLER                                               !3, 51000
         12      > JMPNZ                                                    ~14, ->5
   13    13    > > RETURN                                                   !2
   14    14*     > RETURN                                                   null

End of function bla

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
189.76 ms | 1398 KiB | 21 Q