3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fp = fopen('php://temp', 'wb+'); fwrite($fp, "move 19 from 23 to 34\n\n"); fseek($fp, 0); while (!feof($fp)) { fscanf($fp, 'move %d from %d to %d', $howMany, $from, $to); var_dump($howMany, $from, $to); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
2 jumps found. (Code = 44) Position 1 = 31, Position 2 = 14
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 31, Position 2 = 14
Branch analysis from position: 31
Branch analysis from position: 14
filename:       /in/hDGNV
function name:  (null)
number of ops:  32
compiled vars:  !0 = $fp, !1 = $howMany, !2 = $from, !3 = $to
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'fopen'
          1        SEND_VAL                                                 'php%3A%2F%2Ftemp'
          2        SEND_VAL                                                 'wb%2B'
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !0, $4
    3     5        INIT_FCALL                                               'fwrite'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 'move+19+from+23+to+34%0A%0A'
          8        DO_ICALL                                                 
    4     9        INIT_FCALL                                               'fseek'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 0
         12        DO_ICALL                                                 
    5    13      > JMP                                                      ->26
    6    14    >   INIT_FCALL                                               'fscanf'
         15        SEND_VAR                                                 !0
         16        SEND_VAL                                                 'move+%25d+from+%25d+to+%25d'
         17        SEND_REF                                                 !1
         18        SEND_REF                                                 !2
         19        SEND_REF                                                 !3
         20        DO_ICALL                                                 
    7    21        INIT_FCALL                                               'var_dump'
         22        SEND_VAR                                                 !1
         23        SEND_VAR                                                 !2
         24        SEND_VAR                                                 !3
         25        DO_ICALL                                                 
    5    26    >   INIT_FCALL                                               'feof'
         27        SEND_VAR                                                 !0
         28        DO_ICALL                                         $10     
         29        BOOL_NOT                                         ~11     $10
         30      > JMPNZ                                                    ~11, ->14
    8    31    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.07 ms | 1396 KiB | 25 Q