3v4l.org

run code in 300+ PHP versions simultaneously
<?php file_put_contents("test", $x = tempnam("/tmp", "FOO")); var_dump(file_get_contents($x));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KdUT1
function name:  (null)
number of ops:  16
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'file_put_contents'
          1        SEND_VAL                                                 'test'
          2        INIT_FCALL                                               'tempnam'
          3        SEND_VAL                                                 '%2Ftmp'
          4        SEND_VAL                                                 'FOO'
          5        DO_ICALL                                         $1      
          6        ASSIGN                                           ~2      !0, $1
          7        SEND_VAL                                                 ~2
          8        DO_ICALL                                                 
    4     9        INIT_FCALL                                               'var_dump'
         10        INIT_FCALL                                               'file_get_contents'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $4      
         13        SEND_VAR                                                 $4
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.59 ms | 1398 KiB | 21 Q