3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.68 ms | 1394 KiB | 19 Q