3v4l.org

run code in 300+ PHP versions simultaneously
<?php $file = tempnam(sys_get_temp_dir()); file_put_contents($file, "lots\r\nof\r\nlines"); var_dump(nl2br(file_get_contents($file)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8SfYs
function name:  (null)
number of ops:  20
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        DO_ICALL                                         $2      
          5        ASSIGN                                                   !0, $2
    4     6        INIT_FCALL                                               'file_put_contents'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 'lots%0D%0Aof%0D%0Alines'
          9        DO_ICALL                                                 
    6    10        INIT_FCALL                                               'var_dump'
         11        INIT_FCALL                                               'nl2br'
         12        INIT_FCALL                                               'file_get_contents'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $5      
         15        SEND_VAR                                                 $5
         16        DO_ICALL                                         $6      
         17        SEND_VAR                                                 $6
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.46 ms | 1386 KiB | 25 Q