3v4l.org

run code in 300+ PHP versions simultaneously
<?php output_add_rewrite_var('alpha', 'beta'); $str = "<a href=\"foo.php\">Foo!</a>\n"; $_SERVER['str'] = $str; echo "ECHO: $str"; var_dump("VD: $str"); var_export("VE: $str"); debug_zval_dump("DBZD: $str"); print_r("PR: $str"); phpinfo(); file_put_contents('php://stdout', "FPC: $str"); file_put_contents('php://stdout', print_r("FPC PR: $str", true)); throw new Exception("EX: $str");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/AVV9V
function name:  (null)
number of ops:  56
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'output_add_rewrite_var'
          1        SEND_VAL                                                 'alpha'
          2        SEND_VAL                                                 'beta'
          3        DO_ICALL                                                 
    3     4        ASSIGN                                                   !0, '%3Ca+href%3D%22foo.php%22%3EFoo%21%3C%2Fa%3E%0A'
    4     5        FETCH_W                      global              $3      '_SERVER'
          6        ASSIGN_DIM                                               $3, 'str'
          7        OP_DATA                                                  !0
    6     8        NOP                                                      
          9        FAST_CONCAT                                      ~5      'ECHO%3A+', !0
         10        ECHO                                                     ~5
    7    11        INIT_FCALL                                               'var_dump'
         12        NOP                                                      
         13        FAST_CONCAT                                      ~6      'VD%3A+', !0
         14        SEND_VAL                                                 ~6
         15        DO_ICALL                                                 
    8    16        INIT_FCALL                                               'var_export'
         17        NOP                                                      
         18        FAST_CONCAT                                      ~8      'VE%3A+', !0
         19        SEND_VAL                                                 ~8
         20        DO_ICALL                                                 
    9    21        INIT_FCALL                                               'debug_zval_dump'
         22        NOP                                                      
         23        FAST_CONCAT                                      ~10     'DBZD%3A+', !0
         24        SEND_VAL                                                 ~10
         25        DO_ICALL                                                 
   10    26        INIT_FCALL                                               'print_r'
         27        NOP                                                      
         28        FAST_CONCAT                                      ~12     'PR%3A+', !0
         29        SEND_VAL                                                 ~12
         30        DO_ICALL                                                 
   11    31        INIT_FCALL                                               'phpinfo'
         32        DO_ICALL                                                 
   12    33        INIT_FCALL                                               'file_put_contents'
         34        SEND_VAL                                                 'php%3A%2F%2Fstdout'
         35        NOP                                                      
         36        FAST_CONCAT                                      ~15     'FPC%3A+', !0
         37        SEND_VAL                                                 ~15
         38        DO_ICALL                                                 
   13    39        INIT_FCALL                                               'file_put_contents'
         40        SEND_VAL                                                 'php%3A%2F%2Fstdout'
         41        INIT_FCALL                                               'print_r'
         42        NOP                                                      
         43        FAST_CONCAT                                      ~17     'FPC+PR%3A+', !0
         44        SEND_VAL                                                 ~17
         45        SEND_VAL                                                 <true>
         46        DO_ICALL                                         $18     
         47        SEND_VAR                                                 $18
         48        DO_ICALL                                                 
   14    49        NEW                                              $20     'Exception'
         50        NOP                                                      
         51        FAST_CONCAT                                      ~21     'EX%3A+', !0
         52        SEND_VAL_EX                                              ~21
         53        DO_FCALL                                      0          
         54      > THROW                                         0          $20
         55*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.4 ms | 1400 KiB | 27 Q