3v4l.org

run code in 300+ PHP versions simultaneously
<?php $retornar = 2; //$_GET['retornar']; $ccs = array("1", "2"); if($retornar > count($ccs)){ die("Quantidade indisponivel"); } if($retornar == 0){ echo $ccs[0]; }else{ for($i = 0; $i < $retornar; $i++) { echo $ccs[$i]; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 6
Branch analysis from position: 5
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 11
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 13
Branch analysis from position: 18
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 13
Branch analysis from position: 18
Branch analysis from position: 13
filename:       /in/ntcpZ
function name:  (null)
number of ops:  19
compiled vars:  !0 = $retornar, !1 = $ccs, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 2
    5     1        ASSIGN                                                   !1, <array>
    7     2        COUNT                                            ~5      !1
          3        IS_SMALLER                                               ~5, !0
          4      > JMPZ                                                     ~6, ->6
    8     5    > > EXIT                                                     'Quantidade+indisponivel'
   11     6    >   IS_EQUAL                                                 !0, 0
          7      > JMPZ                                                     ~7, ->11
   12     8    >   FETCH_DIM_R                                      ~8      !1, 0
          9        ECHO                                                     ~8
   11    10      > JMP                                                      ->18
   14    11    >   ASSIGN                                                   !2, 0
         12      > JMP                                                      ->16
   15    13    >   FETCH_DIM_R                                      ~10     !1, !2
         14        ECHO                                                     ~10
   14    15        PRE_INC                                                  !2
         16    >   IS_SMALLER                                               !2, !0
         17      > JMPNZ                                                    ~12, ->13
   17    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
121.55 ms | 1442 KiB | 13 Q