3v4l.org

run code in 300+ PHP versions simultaneously
<?php new A(); class A implements JsonSerializable { public function jsonSerialize() { return []; } } class B implements JsonSerializable { public function jsonSerialize() { return []; } } new B();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/p65oF
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $0      'A'
          1        DO_FCALL                                      0          
          2        FREE                                                     $0
    5     3        DECLARE_CLASS                                            'a'
   10     4        DECLARE_CLASS                                            'b'
   14     5        NEW                                              $2      'B'
          6        DO_FCALL                                      0          
          7        FREE                                                     $2
          8      > RETURN                                                   1

Class A:
Function jsonserialize:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/p65oF
function name:  jsonSerialize
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E > > RETURN                                                   <array>
          1*     > RETURN                                                   null

End of function jsonserialize

End of class A.

Class B:
Function jsonserialize:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/p65oF
function name:  jsonSerialize
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E > > RETURN                                                   <array>
          1*     > RETURN                                                   null

End of function jsonserialize

End of class B.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.03 ms | 1394 KiB | 13 Q