3v4l.org

run code in 300+ PHP versions simultaneously
<?php class abc{ protected const A = [1, 2, 3]; public static function abcd(){ return abc::A; } } print_r(abc::abcd()); $file_url = 'http://www.javatpoint.com/f.txt'; header('Content-Type: application/octet-stream'); header("Content-Transfer-Encoding: utf-8"); header("Content-disposition: attachment; filename=\"" . basename($file_url) . "\""); readfile($file_url);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0fn8Y
function name:  (null)
number of ops:  24
compiled vars:  !0 = $file_url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_FCALL                                               'print_r'
          1        INIT_STATIC_METHOD_CALL                                  'abc', 'abcd'
          2        DO_FCALL                                      0  $1      
          3        SEND_VAR                                                 $1
          4        DO_ICALL                                                 
   17     5        ASSIGN                                                   !0, 'http%3A%2F%2Fwww.javatpoint.com%2Ff.txt'
   19     6        INIT_FCALL                                               'header'
          7        SEND_VAL                                                 'Content-Type%3A+application%2Foctet-stream'
          8        DO_ICALL                                                 
   21     9        INIT_FCALL                                               'header'
         10        SEND_VAL                                                 'Content-Transfer-Encoding%3A+utf-8'
         11        DO_ICALL                                                 
   23    12        INIT_FCALL                                               'header'
         13        INIT_FCALL                                               'basename'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $6      
         16        CONCAT                                           ~7      'Content-disposition%3A+attachment%3B+filename%3D%22', $6
         17        CONCAT                                           ~8      ~7, '%22'
         18        SEND_VAL                                                 ~8
         19        DO_ICALL                                                 
   25    20        INIT_FCALL                                               'readfile'
         21        SEND_VAR                                                 !0
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Class abc:
Function abcd:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0fn8Y
function name:  abcd
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E > > RETURN                                                   <array>
   10     1*     > RETURN                                                   null

End of function abcd

End of class abc.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.11 ms | 1396 KiB | 21 Q