3v4l.org

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

Class Foo:
Function dofoo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FpcfC
function name:  doFoo
number of ops:  10
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    6     2        ROPE_INIT                                     4  ~3      !0
          3        ROPE_ADD                                      1  ~3      ~3, '%2B'
          4        ROPE_ADD                                      2  ~3      ~3, !1
          5        ROPE_END                                      3  ~2      ~3, '%3D'
          6        ADD                                              ~5      !0, !1
          7        CONCAT                                           ~6      ~2, ~5
          8        ECHO                                                     ~6
    7     9      > RETURN                                                   null

End of function dofoo

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.94 ms | 1394 KiB | 13 Q