3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Sonata\CoreBundle\Validator; class_alias( \Sonata\Form\Validator\ErrorElement::class, __NAMESPACE__.'\ErrorElement' ); namespace Sonata\Form\Validator; class ErrorElement { public function test(\Sonata\CoreBundle\Validator\ErrorElement $test) { echo 'OK'; } } namespace something; $a = new \Sonata\Form\Validator\ErrorElement(); $a->test($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DamPl
function name:  (null)
number of ops:  11
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_NS_FCALL_BY_NAME                                    'Sonata%5CCoreBundle%5CValidator%5Cclass_alias'
    6     1        SEND_VAL_EX                                              'Sonata%5CForm%5CValidator%5CErrorElement'
    7     2        SEND_VAL_EX                                              'Sonata%5CCoreBundle%5CValidator%5CErrorElement'
    5     3        DO_FCALL                                      0          
   22     4        NEW                                              $2      'Sonata%5CForm%5CValidator%5CErrorElement'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !0, $2
   25     7        INIT_METHOD_CALL                                         !0, 'test'
          8        SEND_VAR_EX                                              !0
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

Class Sonata\Form\Validator\ErrorElement:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DamPl
function name:  test
number of ops:  3
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   RECV                                             !0      
   15     1        ECHO                                                     'OK'
   16     2      > RETURN                                                   null

End of function test

End of class Sonata\Form\Validator\ErrorElement.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.55 ms | 1436 KiB | 14 Q