3v4l.org

run code in 300+ PHP versions simultaneously
<?php $file = tempnam(sys_get_temp_dir()); file_put_contents($file, <<<HEREDOC lots of lines HEREDOC); 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/T2Tm3
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
    5     8        SEND_VAL                                                 'lots%0Aof%0Alines'
          9        DO_ICALL                                                 
   10    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:
159.56 ms | 939 KiB | 26 Q