3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo; class Bar {} echo (int) method_exists('Bar','class');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CWal8
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_NS_FCALL_BY_NAME                                    'Foo%5Cmethod_exists'
          1        SEND_VAL_EX                                              'Bar'
          2        SEND_VAL_EX                                              'class'
          3        DO_FCALL                                      0  $0      
          4        CAST                                          4  ~1      $0
          5        ECHO                                                     ~1
          6      > RETURN                                                   1

Class Foo\Bar: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.2 ms | 1393 KiB | 15 Q