3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { function bar($arg, $arg2) { echo __METHOD__, " got $arg and $arg2\n"; } } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OeJZp
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E > > RETURN                                                   1

Class foo:
Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OeJZp
function name:  bar
number of ops:  10
compiled vars:  !0 = $arg, !1 = $arg2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        ECHO                                                     'foo%3A%3Abar'
          3        ROPE_INIT                                     5  ~3      '+got+'
          4        ROPE_ADD                                      1  ~3      ~3, !0
          5        ROPE_ADD                                      2  ~3      ~3, '+and+'
          6        ROPE_ADD                                      3  ~3      ~3, !1
          7        ROPE_END                                      4  ~2      ~3, '%0A'
          8        ECHO                                                     ~2
    5     9      > RETURN                                                   null

End of function bar

End of class foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.34 ms | 1393 KiB | 13 Q