3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "enter your name:\n"; $f=fgets[STDIN]; echo "$f"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ftGlM
function name:  (null)
number of ops:  8
compiled vars:  !0 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ECHO                                                     'enter+your+name%3A%0A'
    3     1        FETCH_CONSTANT                                   ~1      'fgets'
          2        FETCH_CONSTANT                                   ~2      'STDIN'
          3        FETCH_DIM_R                                      ~3      ~1, ~2
          4        ASSIGN                                                   !0, ~3
    4     5        CAST                                          6  ~5      !0
          6        ECHO                                                     ~5
    5     7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.3 ms | 1392 KiB | 13 Q