3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dir = '/'.PATH_SEPARATOR.dirname(PHP_BINARY); ini_set('open_basedir', $dir); print("ini_set to ".$dir."\n"); var_dump(file_put_contents('/tmp/hhvm-openbasedir-test', 'some data'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lOe02
function name:  (null)
number of ops:  20
compiled vars:  !0 = $dir
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'dirname'
          1        SEND_VAL                                                 '%2Fusr%2Fbin%2Fphp-8.0.0'
          2        DO_ICALL                                         $1      
          3        CONCAT                                           ~2      '%2F%3A', $1
          4        ASSIGN                                                   !0, ~2
    5     5        INIT_FCALL                                               'ini_set'
          6        SEND_VAL                                                 'open_basedir'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
    7     9        CONCAT                                           ~5      'ini_set+to+', !0
         10        CONCAT                                           ~6      ~5, '%0A'
         11        ECHO                                                     ~6
    9    12        INIT_FCALL                                               'var_dump'
         13        INIT_FCALL                                               'file_put_contents'
         14        SEND_VAL                                                 '%2Ftmp%2Fhhvm-openbasedir-test'
         15        SEND_VAL                                                 'some+data'
         16        DO_ICALL                                         $7      
         17        SEND_VAR                                                 $7
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.49 ms | 1395 KiB | 21 Q