3v4l.org

run code in 300+ PHP versions simultaneously
<?php $file = tempnam(sys_get_temp_dir(), 'test'); file_put_contents($file, "lots\r\nof\r\nlines"); var_dump(nl2br(file_get_contents($file))); unlink($file);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7Apvh
function name:  (null)
number of ops:  24
compiled vars:  !0 = $file
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'tempnam'
          1        INIT_FCALL                                               'sys_get_temp_dir'
          2        DO_ICALL                                         $1      
          3        SEND_VAR                                                 $1
          4        SEND_VAL                                                 'test'
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
    4     7        INIT_FCALL                                               'file_put_contents'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 'lots%0D%0Aof%0D%0Alines'
         10        DO_ICALL                                                 
    6    11        INIT_FCALL                                               'var_dump'
         12        INIT_FCALL                                               'nl2br'
         13        INIT_FCALL                                               'file_get_contents'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $5      
         16        SEND_VAR                                                 $5
         17        DO_ICALL                                         $6      
         18        SEND_VAR                                                 $6
         19        DO_ICALL                                                 
    7    20        INIT_FCALL                                               'unlink'
         21        SEND_VAR                                                 !0
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.41 ms | 1386 KiB | 27 Q