3v4l.org

run code in 300+ PHP versions simultaneously
<?php session_start(); function start() { return $_SESSION['a'] = 1+1; } echo start(); echo $_SESSION['a'];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/X0l8s
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'session_start'
          1        DO_ICALL                                                 
    8     2        INIT_FCALL                                               'start'
          3        DO_FCALL                                      0  $1      
          4        ECHO                                                     $1
    9     5        FETCH_R                      global              ~2      '_SESSION'
          6        FETCH_DIM_R                                      ~3      ~2, 'a'
          7        ECHO                                                     ~3
          8      > RETURN                                                   1

Function start:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/X0l8s
function name:  start
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   FETCH_W                      global              $0      '_SESSION'
          1        ASSIGN_DIM                                       ~1      $0, 'a'
          2        OP_DATA                                                  2
          3      > RETURN                                                   ~1
    6     4*     > RETURN                                                   null

End of function start

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.14 ms | 1388 KiB | 16 Q