3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tmp = sys_get_temp_dir(); 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/tA5CE
function name:  (null)
number of ops:  27
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                                               'touch'
          4        CONCAT                                           ~3      !0, '%2Ffile'
          5        SEND_VAL                                                 ~3
          6        DO_ICALL                                                 
    6     7        INIT_FCALL                                               'symlink'
          8        CONCAT                                           ~5      !0, '%2Ffile'
          9        SEND_VAL                                                 ~5
         10        CONCAT                                           ~6      !0, '%2Flink1'
         11        SEND_VAL                                                 ~6
         12        DO_ICALL                                                 
    7    13        INIT_FCALL                                               'symlink'
         14        CONCAT                                           ~8      !0, '%2Flink1'
         15        SEND_VAL                                                 ~8
         16        CONCAT                                           ~9      !0, '%2Flink2'
         17        SEND_VAL                                                 ~9
         18        DO_ICALL                                                 
    9    19        INIT_FCALL                                               'var_dump'
         20        INIT_FCALL                                               'readlink'
         21        CONCAT                                           ~11     !0, '%2Flink2'
         22        SEND_VAL                                                 ~11
         23        DO_ICALL                                         $12     
         24        SEND_VAR                                                 $12
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.6 ms | 1395 KiB | 23 Q