3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test(){} //const CONFIG = [ // 'pdo' => new PDO //]; define('CONFIG', [ 'pdo' => new PDO() ]); var_dump(CONFIG['pdo']);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WiNqK
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'CONFIG'
   10     2        NEW                                              $0      'PDO'
          3        DO_FCALL                                      0          
          4        INIT_ARRAY                                       ~2      $0, 'pdo'
          5        SEND_VAL                                                 ~2
          6        DO_ICALL                                                 
   13     7        INIT_FCALL                                               'var_dump'
          8        FETCH_CONSTANT                                   ~4      'CONFIG'
          9        FETCH_DIM_R                                      ~5      ~4, 'pdo'
         10        SEND_VAL                                                 ~5
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WiNqK
function name:  test
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E > > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
186.74 ms | 1394 KiB | 17 Q