3v4l.org

run code in 300+ PHP versions simultaneously
<?php $val = ini_get('phar.readonly'); print_r('phar.readonly = '.$val); ini_set('phar.readonly',1); $dir = sys_get_temp_dir(); $test = new PharData($dir.'/test.phar');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0s1Ds
function name:  (null)
number of ops:  21
compiled vars:  !0 = $val, !1 = $dir, !2 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'ini_get'
          1        SEND_VAL                                                 'phar.readonly'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    4     4        INIT_FCALL                                               'print_r'
          5        CONCAT                                           ~5      'phar.readonly+%3D+', !0
          6        SEND_VAL                                                 ~5
          7        DO_ICALL                                                 
    5     8        INIT_FCALL                                               'ini_set'
          9        SEND_VAL                                                 'phar.readonly'
         10        SEND_VAL                                                 1
         11        DO_ICALL                                                 
    6    12        INIT_FCALL                                               'sys_get_temp_dir'
         13        DO_ICALL                                         $8      
         14        ASSIGN                                                   !1, $8
    7    15        NEW                                              $10     'PharData'
         16        CONCAT                                           ~11     !1, '%2Ftest.phar'
         17        SEND_VAL_EX                                              ~11
         18        DO_FCALL                                      0          
         19        ASSIGN                                                   !2, $10
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.38 ms | 1399 KiB | 21 Q