3v4l.org

run code in 300+ PHP versions simultaneously
<?php putenv("TEST='PHP_SELF'"); $test = getenv("TEST"); echo $test; $test = $_SERVER["REMOTE_ADDR"]; echo $test;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FlWTN
function name:  (null)
number of ops:  13
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'putenv'
          1        SEND_VAL                                                 'TEST%3D%27PHP_SELF%27'
          2        DO_ICALL                                                 
    3     3        INIT_FCALL                                               'getenv'
          4        SEND_VAL                                                 'TEST'
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
    4     7        ECHO                                                     !0
    5     8        FETCH_R                      global              ~4      '_SERVER'
          9        FETCH_DIM_R                                      ~5      ~4, 'REMOTE_ADDR'
         10        ASSIGN                                                   !0, ~5
    6    11        ECHO                                                     !0
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.46 ms | 1394 KiB | 17 Q