3v4l.org

run code in 500+ PHP versions simultaneously
<?php file_put_contents('/path/to/file.txt', [1,2,3]); print file_get_contents('/path/to/file.txt'); // print 123
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sBflr
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'file_put_contents'
          1        SEND_VAL                                                     '%2Fpath%2Fto%2Ffile.txt'
          2        SEND_VAL                                                     <array>
          3        DO_ICALL                                                     
    5     4        INIT_FCALL                                                   'file_get_contents'
          5        SEND_VAL                                                     '%2Fpath%2Fto%2Ffile.txt'
          6        DO_ICALL                                             $1      
          7        ECHO                                                         $1
    6     8      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
164.66 ms | 1540 KiB | 15 Q