3v4l.org

run code in 300+ PHP versions simultaneously
<?php $connection = 'db'; class article{ public function poll(){ global $connection; echo $connection; } } (new article)->poll();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hueih
function name:  (null)
number of ops:  6
compiled vars:  !0 = $connection
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'db'
   12     1        NEW                                              $2      'article'
          2        DO_FCALL                                      0          
          3        INIT_METHOD_CALL                                         $2, 'poll'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class article:
Function poll:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hueih
function name:  poll
number of ops:  3
compiled vars:  !0 = $connection
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   BIND_GLOBAL                                              !0, 'connection'
    8     1        ECHO                                                     !0
    9     2      > RETURN                                                   null

End of function poll

End of class article.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
254.95 ms | 1006 KiB | 13 Q