3v4l.org

run code in 300+ PHP versions simultaneously
<?php function bla() { $a = 10; $b = 20; $c = 0; for ($i = 0; $i < 5000; $i++) { $c = (($a * $i) + $b * 2); $c++; } return $c; } var_dump(bla());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Natt7
function name:  (null)
number of ops:  6
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        SEND_VAR                                                 $0
          4        DO_ICALL                                                 
          5      > 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/Natt7
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, 5000
         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:
174.34 ms | 1398 KiB | 16 Q