3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Editor { public function addAfter($add, $after); } class LineEditor implements Editor { public function addAfter($add, array $after) { echo $add; } } $ed = new LineEditor(); $ed->addAfter('plop', array(1, 2, 3));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5eid3
function name:  (null)
number of ops:  9
compiled vars:  !0 = $ed
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   DECLARE_CLASS                                            'lineeditor'
   15     1        NEW                                              $1      'LineEditor'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   16     4        INIT_METHOD_CALL                                         !0, 'addAfter'
          5        SEND_VAL_EX                                              'plop'
          6        SEND_VAL_EX                                              <array>
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

Class Editor:
Function addafter:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5eid3
function name:  addAfter
number of ops:  3
compiled vars:  !0 = $add, !1 = $after
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2      > RETURN                                                   null

End of function addafter

End of class Editor.

Class LineEditor:
Function addafter:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5eid3
function name:  addAfter
number of ops:  4
compiled vars:  !0 = $add, !1 = $after
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   11     2        ECHO                                                     !0
   12     3      > RETURN                                                   null

End of function addafter

End of class LineEditor.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.42 ms | 1394 KiB | 13 Q