3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i=0; $i < 3; $i++) { $line = readline("Command: "); readline_add_history($line); } //dump history print_r(readline_list_history()); //dump variables print_r(readline_info()); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 2
Branch analysis from position: 12
Branch analysis from position: 2
filename:       /in/DX7aG
function name:  (null)
number of ops:  23
compiled vars:  !0 = $i, !1 = $line
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->10
    4     2    >   INIT_FCALL_BY_NAME                                       'readline'
          3        SEND_VAL_EX                                              'Command%3A+'
          4        DO_FCALL                                      0  $3      
          5        ASSIGN                                                   !1, $3
    5     6        INIT_FCALL_BY_NAME                                       'readline_add_history'
          7        SEND_VAR_EX                                              !1
          8        DO_FCALL                                      0          
    3     9        PRE_INC                                                  !0
         10    >   IS_SMALLER                                               !0, 3
         11      > JMPNZ                                                    ~7, ->2
    9    12    >   INIT_FCALL                                               'print_r'
         13        INIT_FCALL_BY_NAME                                       'readline_list_history'
         14        DO_FCALL                                      0  $8      
         15        SEND_VAR                                                 $8
         16        DO_ICALL                                                 
   12    17        INIT_FCALL                                               'print_r'
         18        INIT_FCALL_BY_NAME                                       'readline_info'
         19        DO_FCALL                                      0  $10     
         20        SEND_VAR                                                 $10
         21        DO_ICALL                                                 
   13    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.68 ms | 1395 KiB | 15 Q