3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.88 ms | 1394 KiB | 17 Q