3v4l.org

run code in 500+ PHP versions simultaneously
<?php class A implements \JsonSerializable { function jsonSerialize($depth = 0) { } } class B implements \JsonSerializable { function jsonSerialize() { } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BccPi
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                                'a'
    6     1        DECLARE_CLASS                                                'b'
    8     2      > RETURN                                                       1

Class A:
Function jsonserialize:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BccPi
function name:  jsonSerialize
number of ops:  2
compiled vars:  !0 = $depth
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   RECV_INIT                                            !0      0
          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/BccPi
function name:  jsonSerialize
number of ops:  1
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E > > RETURN                                                       null

End of function jsonserialize

End of class B.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
221.62 ms | 2900 KiB | 13 Q