3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace HHVM\UserDocumentation\Inconsistencies\Intro\Examples\DCP; class A {} var_dump(new A(undefined_function())); // Works in PHP5 but not HHVM class B { public function __construct() { } } var_dump(new B(undefined_function())); // Doesn't work in neither HHVM nor PHP5
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FDpj0
function name:  (null)
number of ops:  17
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_NS_FCALL_BY_NAME                                    'HHVM%5CUserDocumentation%5CInconsistencies%5CIntro%5CExamples%5CDCP%5Cvar_dump'
          1        NEW                                              $0      'HHVM%5CUserDocumentation%5CInconsistencies%5CIntro%5CExamples%5CDCP%5CA'
          2        INIT_NS_FCALL_BY_NAME                                    'HHVM%5CUserDocumentation%5CInconsistencies%5CIntro%5CExamples%5CDCP%5Cundefined_function'
          3        DO_FCALL                                      0  $1      
          4        SEND_VAR_NO_REF_EX                                       $1
          5        DO_FCALL                                      0          
          6        SEND_VAR_NO_REF_EX                                       $0
          7        DO_FCALL                                      0          
   12     8        INIT_NS_FCALL_BY_NAME                                    'HHVM%5CUserDocumentation%5CInconsistencies%5CIntro%5CExamples%5CDCP%5Cvar_dump'
          9        NEW                                              $4      'HHVM%5CUserDocumentation%5CInconsistencies%5CIntro%5CExamples%5CDCP%5CB'
         10        INIT_NS_FCALL_BY_NAME                                    'HHVM%5CUserDocumentation%5CInconsistencies%5CIntro%5CExamples%5CDCP%5Cundefined_function'
         11        DO_FCALL                                      0  $5      
         12        SEND_VAR_NO_REF_EX                                       $5
         13        DO_FCALL                                      0          
         14        SEND_VAR_NO_REF_EX                                       $4
         15        DO_FCALL                                      0          
         16      > RETURN                                                   1

Class HHVM\UserDocumentation\Inconsistencies\Intro\Examples\DCP\A: [no user functions]
Class HHVM\UserDocumentation\Inconsistencies\Intro\Examples\DCP\B:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FDpj0
function name:  __construct
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E > > RETURN                                                   null

End of function __construct

End of class HHVM\UserDocumentation\Inconsistencies\Intro\Examples\DCP\B.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.32 ms | 1398 KiB | 17 Q