3v4l.org

run code in 300+ PHP versions simultaneously
<?php for($i = 0; $i < 10000; $i ++) { $a = "any2"; switch($a) { case "any": $b = 1; berak; case "any1": $b = 1; berak; case "any2": $b = 1; berak; default: $b = 1; berak; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 2
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
5 jumps found. (Code = 188) Position 1 = 11, Position 2 = 14, Position 3 = 17, Position 4 = 20, Position 5 = 4
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 2
Branch analysis from position: 26
Branch analysis from position: 2
Branch analysis from position: 14
Branch analysis from position: 17
Branch analysis from position: 20
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 6, Position 2 = 11
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 14
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 17
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
Branch analysis from position: 17
Branch analysis from position: 14
Branch analysis from position: 11
filename:       /in/pNbmD
function name:  (null)
number of ops:  27
compiled vars:  !0 = $i, !1 = $a, !2 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->24
    4     2    >   ASSIGN                                                   !1, 'any2'
    5     3      > SWITCH_STRING                                            !1, [ 'any':->11, 'any1':->14, 'any2':->17, ], ->20
    7     4    >   IS_EQUAL                                                 !1, 'any'
          5      > JMPNZ                                                    ~5, ->11
   10     6    >   IS_EQUAL                                                 !1, 'any1'
          7      > JMPNZ                                                    ~5, ->14
   13     8    >   IS_EQUAL                                                 !1, 'any2'
          9      > JMPNZ                                                    ~5, ->17
         10    > > JMP                                                      ->20
    8    11    >   ASSIGN                                                   !2, 1
    9    12        FETCH_CONSTANT                                   ~7      'berak'
         13        FREE                                                     ~7
   11    14    >   ASSIGN                                                   !2, 1
   12    15        FETCH_CONSTANT                                   ~9      'berak'
         16        FREE                                                     ~9
   14    17    >   ASSIGN                                                   !2, 1
   15    18        FETCH_CONSTANT                                   ~11     'berak'
         19        FREE                                                     ~11
   17    20    >   ASSIGN                                                   !2, 1
   18    21        FETCH_CONSTANT                                   ~13     'berak'
         22        FREE                                                     ~13
    2    23        PRE_INC                                                  !0
         24    >   IS_SMALLER                                               !0, 10000
         25      > JMPNZ                                                    ~15, ->2
   20    26    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.37 ms | 1395 KiB | 13 Q