3v4l.org

run code in 300+ PHP versions simultaneously
<?php $f = tempnam(sys_get_temp_dir(), 'whatever'); unlink($f); mkdir($f); var_dump(is_dir($f)); file_put_contents("$f/foo", "hi"); var_dump(file_get_contents("$f/foo")); var_dump(unlink("$f/foo")); var_dump(unlink("$f/foo")); rmdir($f);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/t4Ova
function name:  (null)
number of ops:  53
compiled vars:  !0 = $f
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                                                 'whatever'
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
    4     7        INIT_FCALL                                               'unlink'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
    5    10        INIT_FCALL                                               'mkdir'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
    6    13        INIT_FCALL                                               'var_dump'
         14        INIT_FCALL                                               'is_dir'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $6      
         17        SEND_VAR                                                 $6
         18        DO_ICALL                                                 
    7    19        INIT_FCALL                                               'file_put_contents'
         20        NOP                                                      
         21        FAST_CONCAT                                      ~8      !0, '%2Ffoo'
         22        SEND_VAL                                                 ~8
         23        SEND_VAL                                                 'hi'
         24        DO_ICALL                                                 
    8    25        INIT_FCALL                                               'var_dump'
         26        INIT_FCALL                                               'file_get_contents'
         27        NOP                                                      
         28        FAST_CONCAT                                      ~10     !0, '%2Ffoo'
         29        SEND_VAL                                                 ~10
         30        DO_ICALL                                         $11     
         31        SEND_VAR                                                 $11
         32        DO_ICALL                                                 
    9    33        INIT_FCALL                                               'var_dump'
         34        INIT_FCALL                                               'unlink'
         35        NOP                                                      
         36        FAST_CONCAT                                      ~13     !0, '%2Ffoo'
         37        SEND_VAL                                                 ~13
         38        DO_ICALL                                         $14     
         39        SEND_VAR                                                 $14
         40        DO_ICALL                                                 
   10    41        INIT_FCALL                                               'var_dump'
         42        INIT_FCALL                                               'unlink'
         43        NOP                                                      
         44        FAST_CONCAT                                      ~16     !0, '%2Ffoo'
         45        SEND_VAL                                                 ~16
         46        DO_ICALL                                         $17     
         47        SEND_VAR                                                 $17
         48        DO_ICALL                                                 
   11    49        INIT_FCALL                                               'rmdir'
         50        SEND_VAR                                                 !0
         51        DO_ICALL                                                 
         52      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.77 ms | 1400 KiB | 31 Q