3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace lorem\ipsum; class Foo { const BAR = 42; } $foo = new Foo; var_dump($foo::BAR);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/drYVR
function name:  (null)
number of ops:  9
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   NEW                                              $1      'lorem%5Cipsum%5CFoo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    9     3        INIT_NS_FCALL_BY_NAME                                    'lorem%5Cipsum%5Cvar_dump'
          4        FETCH_CLASS                                   0  $4      !0
          5        FETCH_CLASS_CONSTANT                             ~5      $4, 'BAR'
          6        SEND_VAL_EX                                              ~5
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

Class lorem\ipsum\Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.84 ms | 1394 KiB | 15 Q