3v4l.org

run code in 300+ PHP versions simultaneously
<?php file_put_contents('/tmp/foo⇒bar.txt', 'hello, world!'); foreach (new DirectoryIterator('/tmp') as $file) { echo file_get_contents($file); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 14
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 14
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/H4rMW
function name:  (null)
number of ops:  16
compiled vars:  !0 = $file
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'file_put_contents'
          1        SEND_VAL                                                 '%2Ftmp%2Ffoo%E2%87%92bar.txt'
          2        SEND_VAL                                                 'hello%2C+world%21'
          3        DO_ICALL                                                 
    4     4        NEW                                              $2      'DirectoryIterator'
          5        SEND_VAL_EX                                              '%2Ftmp'
          6        DO_FCALL                                      0          
          7      > FE_RESET_R                                       $4      $2, ->14
          8    > > FE_FETCH_R                                               $4, !0, ->14
    5     9    >   INIT_FCALL                                               'file_get_contents'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $5      
         12        ECHO                                                     $5
    4    13      > JMP                                                      ->8
         14    >   FE_FREE                                                  $4
    6    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.75 ms | 1395 KiB | 17 Q