3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Test { function file_get_contents($filename) { echo 'Function is intercepted!'; } echo file_get_contents(__FILE__); } namespace { echo file_get_contents(__FILE__); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JXCPK
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_NS_FCALL_BY_NAME                                    'Test%5Cfile_get_contents'
          1        SEND_VAL_EX                                              '%2Fin%2FJXCPK'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
   11     4        INIT_FCALL                                               'file_get_contents'
          5        SEND_VAL                                                 '%2Fin%2FJXCPK'
          6        DO_ICALL                                         $1      
          7        ECHO                                                     $1
   12     8      > RETURN                                                   1

Function test%5Cfile_get_contents:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JXCPK
function name:  Test\file_get_contents
number of ops:  3
compiled vars:  !0 = $filename
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        ECHO                                                     'Function+is+intercepted%21'
    6     2      > RETURN                                                   null

End of function test%5Cfile_get_contents

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.35 ms | 1394 KiB | 15 Q