3v4l.org

run code in 300+ PHP versions simultaneously
<?php use Foo as Bar; use const meh as DEH; define('meh', 10, true); class Foo { function __construct() { echo 1; } } echo meh;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WYIoA
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'meh'
          2        SEND_VAL                                                 10
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                                 
   10     5        FETCH_CONSTANT                                   ~1      'meh'
          6        ECHO                                                     ~1
          7      > RETURN                                                   1

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

End of function __construct

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.59 ms | 1394 KiB | 15 Q