3v4l.org

run code in 500+ 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 = 8
Branch analysis from position: 5
1 jumps found. (Code = 61) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 15
Branch analysis from position: 20
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 15
Branch analysis from position: 20
Branch analysis from position: 15
filename:       /in/ntcpZ
function name:  (null)
number of ops:  21
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, ->8
    8     5    > > INIT_FCALL                                                   'exit'
          6*       SEND_VAL                                                     'Quantidade+indisponivel'
          7*       DO_ICALL                                                     
   11     8    >   IS_EQUAL                                                     !0, 0
          9      > JMPZ                                                         ~8, ->13
   12    10    >   FETCH_DIM_R                                          ~9      !1, 0
         11        ECHO                                                         ~9
   11    12      > JMP                                                          ->20
   14    13    >   ASSIGN                                                       !2, 0
         14      > JMP                                                          ->18
   15    15    >   FETCH_DIM_R                                          ~11     !1, !2
         16        ECHO                                                         ~11
   14    17        PRE_INC                                                      !2
         18    >   IS_SMALLER                                                   !2, !0
         19      > JMPNZ                                                        ~13, ->15
   17    20    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
157.65 ms | 2125 KiB | 14 Q