3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo {} if(!defined('STDIN')) define('STDIN', new foo()); var_dump(STDIN);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 9
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/r303q
function name:  (null)
number of ops:  14
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   DEFINED                                          ~0      'STDIN'
          1        BOOL_NOT                                         ~1      ~0
          2      > JMPZ                                                     ~1, ->9
          3    >   INIT_FCALL                                               'define'
          4        SEND_VAL                                                 'STDIN'
          5        NEW                                              $2      'foo'
          6        DO_FCALL                                      0          
          7        SEND_VAR                                                 $2
          8        DO_ICALL                                                 
    5     9    >   INIT_FCALL                                               'var_dump'
         10        FETCH_CONSTANT                                   ~5      'STDIN'
         11        SEND_VAL                                                 ~5
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Class foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.6 ms | 1394 KiB | 17 Q