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/1A81L
function name:  (null)
number of ops:  9
compiled vars:  !0 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ECHO                                                     'enter+your+name%3A%0A'
    3     1        INIT_FCALL                                               'fgets'
          2        FETCH_CONSTANT                                   ~1      'STDIN'
          3        SEND_VAL                                                 ~1
          4        DO_ICALL                                         $2      
          5        ASSIGN                                                   !0, $2
    4     6        CAST                                          6  ~4      !0
          7        ECHO                                                     ~4
    5     8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.47 ms | 1394 KiB | 15 Q