3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=" "; echo "enter the number of rows"; $b=fgets(STDIN); $num=1; for($a=1;a>$b;$a++) { echo "$a"; exit(0); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 10
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/qmKHc
function name:  (null)
number of ops:  18
compiled vars:  !0 = $a, !1 = $b, !2 = $num
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '+'
    3     1        ECHO                                                     'enter+the+number+of+rows'
    4     2        INIT_FCALL                                               'fgets'
          3        FETCH_CONSTANT                                   ~4      'STDIN'
          4        SEND_VAL                                                 ~4
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !1, $5
    5     7        ASSIGN                                                   !2, 1
    6     8        ASSIGN                                                   !0, 1
          9      > JMP                                                      ->14
    8    10    >   CAST                                          6  ~9      !0
         11        ECHO                                                     ~9
   10    12      > EXIT                                                     0
    6    13*       PRE_INC                                                  !0
         14    >   FETCH_CONSTANT                                   ~11     'a'
         15        IS_SMALLER                                               !1, ~11
         16      > JMPNZ                                                    ~12, ->10
   11    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.44 ms | 1395 KiB | 15 Q