3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { function __construct(){echo 'a';} } ${INF} = 'a'; // new ${!${''}='Test'}; var_dump(${-INF});
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/X2IQp
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   FETCH_W                      local               $0      'INF'
          1        ASSIGN                                                   $0, 'a'
    9     2        INIT_FCALL                                               'var_dump'
          3        FETCH_R                      local               ~2      '-INF'
          4        SEND_VAL                                                 ~2
          5        DO_ICALL                                                 
          6      > RETURN                                                   1

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

End of function __construct

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.86 ms | 1394 KiB | 15 Q