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)) { if (!fscanf($fp, "move %d from %d to %d\n", $howMany, $from, $to)) unset($howMany, $from, $to); var_dump($howMany, $from, $to); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 14
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 26
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 14
Branch analysis from position: 36
Branch analysis from position: 14
Branch analysis from position: 26
filename:       /in/BREbJ
function name:  (null)
number of ops:  37
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                                                      ->31
    6    14    >   INIT_FCALL                                               'fscanf'
         15        SEND_VAR                                                 !0
         16        SEND_VAL                                                 'move+%25d+from+%25d+to+%25d%0A'
         17        SEND_REF                                                 !1
         18        SEND_REF                                                 !2
         19        SEND_REF                                                 !3
         20        DO_ICALL                                         $8      
         21        BOOL_NOT                                         ~9      $8
         22      > JMPZ                                                     ~9, ->26
    7    23    >   UNSET_CV                                                 !1
         24        UNSET_CV                                                 !2
         25        UNSET_CV                                                 !3
    9    26    >   INIT_FCALL                                               'var_dump'
         27        SEND_VAR                                                 !1
         28        SEND_VAR                                                 !2
         29        SEND_VAR                                                 !3
         30        DO_ICALL                                                 
    5    31    >   INIT_FCALL                                               'feof'
         32        SEND_VAR                                                 !0
         33        DO_ICALL                                         $11     
         34        BOOL_NOT                                         ~12     $11
         35      > JMPNZ                                                    ~12, ->14
   10    36    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.58 ms | 1396 KiB | 25 Q