3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tmp = sys_get_temp_dir(); clearstatcache(); touch($tmp.'/file'); symlink($tmp.'/file', $tmp.'/link1'); symlink($tmp.'/link1', $tmp.'/link2'); var_dump(readlink($tmp.'/link2'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/73UYE
function name:  (null)
number of ops:  29
compiled vars:  !0 = $tmp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'sys_get_temp_dir'
          1        DO_ICALL                                         $1      
          2        ASSIGN                                                   !0, $1
    5     3        INIT_FCALL                                               'clearstatcache'
          4        DO_ICALL                                                 
    7     5        INIT_FCALL                                               'touch'
          6        CONCAT                                           ~4      !0, '%2Ffile'
          7        SEND_VAL                                                 ~4
          8        DO_ICALL                                                 
    8     9        INIT_FCALL                                               'symlink'
         10        CONCAT                                           ~6      !0, '%2Ffile'
         11        SEND_VAL                                                 ~6
         12        CONCAT                                           ~7      !0, '%2Flink1'
         13        SEND_VAL                                                 ~7
         14        DO_ICALL                                                 
    9    15        INIT_FCALL                                               'symlink'
         16        CONCAT                                           ~9      !0, '%2Flink1'
         17        SEND_VAL                                                 ~9
         18        CONCAT                                           ~10     !0, '%2Flink2'
         19        SEND_VAL                                                 ~10
         20        DO_ICALL                                                 
   11    21        INIT_FCALL                                               'var_dump'
         22        INIT_FCALL                                               'readlink'
         23        CONCAT                                           ~12     !0, '%2Flink2'
         24        SEND_VAL                                                 ~12
         25        DO_ICALL                                         $13     
         26        SEND_VAR                                                 $13
         27        DO_ICALL                                                 
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.91 ms | 1395 KiB | 25 Q