3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump($_ENV['foo']); putenv('foo', 'bar'); var_dump($_ENV['foo']);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZMrhl
function name:  (null)
number of ops:  15
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
          1        FETCH_R                      global              ~0      '_ENV'
          2        FETCH_DIM_R                                      ~1      ~0, 'foo'
          3        SEND_VAL                                                 ~1
          4        DO_ICALL                                                 
    3     5        INIT_FCALL                                               'putenv'
          6        SEND_VAL                                                 'foo'
          7        SEND_VAL                                                 'bar'
          8        DO_ICALL                                                 
    4     9        INIT_FCALL                                               'var_dump'
         10        FETCH_R                      global              ~4      '_ENV'
         11        FETCH_DIM_R                                      ~5      ~4, 'foo'
         12        SEND_VAL                                                 ~5
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.79 ms | 1394 KiB | 17 Q