3v4l.org

run code in 300+ PHP versions simultaneously
<?php class someclass { function test() { echo "test"; } } $c = someclass->new(); $c->test();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kn5On
function name:  (null)
number of ops:  7
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   FETCH_CONSTANT                                   ~1      'someclass'
          1        INIT_METHOD_CALL                                         ~1, 'new'
          2        DO_FCALL                                      0  $2      
          3        ASSIGN                                                   !0, $2
    8     4        INIT_METHOD_CALL                                         !0, 'test'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

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

End of function test

End of class someclass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.67 ms | 1393 KiB | 13 Q