3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo{} new Foo(die('die')); echo 'No die...', PHP_EOL; class Bar{ function __construct(){} } new Bar(die('die'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/Ympgi
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   NEW                                              $0      'Foo'
          1      > EXIT                                                     'die'
          2*       SEND_VAL_EX                                              <true>
          3*       DO_FCALL                                      0          
          4*       FREE                                                     $0
    7     5*       ECHO                                                     'No+die...'
          6*       ECHO                                                     '%0A'
   11     7*       NEW                                              $2      'Bar'
          8*       EXIT                                                     'die'
          9*       SEND_VAL_EX                                              <true>
         10*       DO_FCALL                                      0          
         11*       FREE                                                     $2
         12*     > RETURN                                                   1

Class Foo: [no user functions]
Class Bar:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ympgi
function name:  __construct
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E > > RETURN                                                   null

End of function __construct

End of class Bar.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.89 ms | 998 KiB | 13 Q