3v4l.org

run code in 300+ PHP versions simultaneously
<?php function someSearch($param) { } switch ($result !== null) { case $result = someSearch(1): break; case $result = someSearch(2): break; case $result = someSearch(3): break; default: $result = someSearch(4); } echo $result;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 44) Position 1 = 7, Position 2 = 20
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 21
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 22
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
filename:       /in/ebsmg
function name:  (null)
number of ops:  30
compiled vars:  !0 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   TYPE_CHECK                                  1020  ~1      !0
    6     1        INIT_FCALL                                               'somesearch'
          2        SEND_VAL                                                 1
          3        DO_FCALL                                      0  $3      
          4        ASSIGN                                           ~4      !0, $3
          5        CASE                                                     ~1, ~4
          6      > JMPNZ                                                    ~2, ->20
    8     7    >   INIT_FCALL                                               'somesearch'
          8        SEND_VAL                                                 2
          9        DO_FCALL                                      0  $5      
         10        ASSIGN                                           ~6      !0, $5
         11        CASE                                                     ~1, ~6
         12      > JMPNZ                                                    ~2, ->21
   10    13    >   INIT_FCALL                                               'somesearch'
         14        SEND_VAL                                                 3
         15        DO_FCALL                                      0  $7      
         16        ASSIGN                                           ~8      !0, $7
         17        CASE                                                     ~1, ~8
         18      > JMPNZ                                                    ~2, ->22
         19    > > JMP                                                      ->23
    7    20    > > JMP                                                      ->27
    9    21    > > JMP                                                      ->27
   11    22    > > JMP                                                      ->27
   13    23    >   INIT_FCALL                                               'somesearch'
         24        SEND_VAL                                                 4
         25        DO_FCALL                                      0  $9      
         26        ASSIGN                                                   !0, $9
         27    >   FREE                                                     ~1
   16    28        ECHO                                                     !0
         29      > RETURN                                                   1

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

End of function somesearch

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.77 ms | 1403 KiB | 17 Q