3v4l.org

run code in 300+ PHP versions simultaneously
<?php eval('class Foo{}'); var_dump((new ReflectionClass('Foo'))->getFileName());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7PuQ1
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INCLUDE_OR_EVAL                                          'class+Foo%7B%7D', EVAL
    5     1        INIT_FCALL                                               'var_dump'
          2        NEW                                              $1      'ReflectionClass'
          3        SEND_VAL_EX                                              'Foo'
          4        DO_FCALL                                      0          
          5        INIT_METHOD_CALL                                         $1, 'getFileName'
          6        DO_FCALL                                      0  $3      
          7        SEND_VAR                                                 $3
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.71 ms | 1394 KiB | 15 Q