3v4l.org

run code in 300+ PHP versions simultaneously
<?php while(1){echo"> ";$i=rtrim(stream_get_line(STDIN,512,PHP_EOL),';');try{@eval('print_r('.$i.');');}catch(Exception$e){print_r($e);}echo"\n";}
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 1
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 1
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 1
Branch analysis from position: 25
Branch analysis from position: 1
Found catch point at position: 19
Branch analysis from position: 19
2 jumps found. (Code = 107) Position 1 = 20, Position 2 = -2
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 1
Branch analysis from position: 25
Branch analysis from position: 1
filename:       /in/g37o4
function name:  (null)
number of ops:  26
compiled vars:  !0 = $i, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E > > JMP                                                      ->24
          1    >   ECHO                                                     '%3E+'
          2        INIT_FCALL                                               'rtrim'
          3        INIT_FCALL                                               'stream_get_line'
          4        FETCH_CONSTANT                                   ~2      'STDIN'
          5        SEND_VAL                                                 ~2
          6        SEND_VAL                                                 512
          7        SEND_VAL                                                 '%0A'
          8        DO_ICALL                                         $3      
          9        SEND_VAR                                                 $3
         10        SEND_VAL                                                 '%3B'
         11        DO_ICALL                                         $4      
         12        ASSIGN                                                   !0, $4
         13        BEGIN_SILENCE                                    ~6      
         14        CONCAT                                           ~7      'print_r%28', !0
         15        CONCAT                                           ~8      ~7, '%29%3B'
         16        INCLUDE_OR_EVAL                                          ~8, EVAL
         17        END_SILENCE                                              ~6
         18      > JMP                                                      ->23
         19  E > > CATCH                                       last         'Exception'
         20    >   INIT_FCALL                                               'print_r'
         21        SEND_VAR                                                 !1
         22        DO_ICALL                                                 
         23    >   ECHO                                                     '%0A'
         24    > > JMPNZ                                                    1, ->1
         25    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.69 ms | 1388 KiB | 19 Q