3v4l.org

run code in 300+ PHP versions simultaneously
<?php function println($msg) { echo $msg . PHP_EOL; } abstract class A { protected $wat = 'aaaa'; public function a() { println('a(): ' . $this->wat); } } class B extends A { protected $wat = 'bbbb'; public function b() { println('b(): ' . $this->wat); } } $b = new B; $b->a(); $b->b();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0URPo
function name:  (null)
number of ops:  8
compiled vars:  !0 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   28     0  E >   NEW                                              $1      'B'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   29     3        INIT_METHOD_CALL                                         !0, 'a'
          4        DO_FCALL                                      0          
   30     5        INIT_METHOD_CALL                                         !0, 'b'
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

Function println:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0URPo
function name:  println
number of ops:  4
compiled vars:  !0 = $msg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        CONCAT                                           ~1      !0, '%0A'
          2        ECHO                                                     ~1
    6     3      > RETURN                                                   null

End of function println

Class A:
Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0URPo
function name:  a
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_FCALL                                               'println'
          1        FETCH_OBJ_R                                      ~0      'wat'
          2        CONCAT                                           ~1      'a%28%29%3A+', ~0
          3        SEND_VAL                                                 ~1
          4        DO_FCALL                                      0          
   15     5      > RETURN                                                   null

End of function a

End of class A.

Class B:
Function b:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0URPo
function name:  b
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E >   INIT_FCALL                                               'println'
          1        FETCH_OBJ_R                                      ~0      'wat'
          2        CONCAT                                           ~1      'b%28%29%3A+', ~0
          3        SEND_VAL                                                 ~1
          4        DO_FCALL                                      0          
   25     5      > RETURN                                                   null

End of function b

Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0URPo
function name:  a
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_FCALL                                               'println'
          1        FETCH_OBJ_R                                      ~0      'wat'
          2        CONCAT                                           ~1      'a%28%29%3A+', ~0
          3        SEND_VAL                                                 ~1
          4        DO_FCALL                                      0          
   15     5      > RETURN                                                   null

End of function a

End of class B.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.88 ms | 1407 KiB | 16 Q