3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Core_Util_ShopNewEntityChangeList { private static $things = array(); public function sendToNewApi() { foreach (self::$things as $thing) { echo $thing; } } } function notifyNewApi() { Core_Util_ShopNewEntityChangeList::sendToNewApi(); } register_shutdown_function('notifyNewApi'); echo "Hello world";
based on CnkFb
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/F9gKk
function name:  (null)
number of ops:  7
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NOP                                                      
  17     1        NOP                                                      
  21     2        INIT_FCALL                                               'register_shutdown_function'
         3        SEND_VAL                                                 'notifyNewApi'
         4        DO_ICALL                                                 
  23     5        ECHO                                                     'Hello+world'
         6      > RETURN                                                   1

Function notifynewapi:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/F9gKk
function name:  notifyNewApi
number of ops:  3
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  19     0  E >   INIT_STATIC_METHOD_CALL                                  'Core_Util_ShopNewEntityChangeList', 'sendToNewApi'
         1        DO_FCALL                                      0          
  20     2      > RETURN                                                   null

End of function notifynewapi

Class Core_Util_ShopNewEntityChangeList:
Function sendtonewapi:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = 3, Position 2 = 6
Branch analysis from position: 3
Jump found. Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
Jump found. Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 6
Jump found. Position 1 = -2
Branch analysis from position: 6
filename:       /in/F9gKk
function name:  sendToNewApi
number of ops:  8
compiled vars:  !0 = $thing
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   8     0  E >   FETCH_CLASS                                 513  :1      
         1        FETCH_R                      static member       $2      'things'
         2      > FE_RESET_R                                       $3      $2, ->6
         3    > > FE_FETCH_R                                               $3, !0, ->6
  10     4    >   ECHO                                                     !0
         5      > JMP                                                      ->3
         6    >   FE_FREE                                                  $3
  13     7      > RETURN                                                   null

End of function sendtonewapi

End of class Core_Util_ShopNewEntityChangeList.

Generated using Vulcan Logic Dumper, using php 7.3.0