3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Nigger { function __construct() { if(defined(__METHOD__)) { echo __METHOD__; } else { throw new Exception('Const not defined :('); } } } $cottonCollector = new Nigger();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FSBKW
function name:  (null)
number of ops:  4
compiled vars:  !0 = $cottonCollector
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   NEW                                              $1      'Nigger'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
          3      > RETURN                                                   1

Class Nigger:
Function __construct:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/FSBKW
function name:  __construct
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'defined'
          1        SEND_VAL                                                 'Nigger%3A%3A__construct'
          2        DO_ICALL                                         $0      
          3      > JMPZ                                                     $0, ->6
    7     4    >   ECHO                                                     'Nigger%3A%3A__construct'
          5      > JMP                                                      ->10
   10     6    >   NEW                                              $1      'Exception'
          7        SEND_VAL_EX                                              'Const+not+defined+%3A%28'
          8        DO_FCALL                                      0          
          9      > THROW                                         0          $1
   13    10    > > RETURN                                                   null

End of function __construct

End of class Nigger.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.74 ms | 1395 KiB | 15 Q