3v4l.org

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

Class hello:
Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bBhvD
function name:  foo
number of ops:  5
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1        ASSIGN                                                   !1, 2
    9     2        ADD                                              ~3      !0, !1
          3        ECHO                                                     ~3
   10     4      > RETURN                                                   null

End of function foo

End of class hello.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.32 ms | 938 KiB | 14 Q