3v4l.org

run code in 300+ PHP versions simultaneously
<?php new A(); class A { public function jsonSerialize() { return array(); } } new B(); class B implements JsonSerializable { public function jsonSerialize() { return array(); } } new B(); new C(); class C implements JsonSerializable { public function jsonSerialize() { return array(); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nTEvj
function name:  (null)
number of ops:  15
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
    9     3        NEW                                              $2      'B'
          4        DO_FCALL                                      0          
          5        FREE                                                     $2
   12     6        DECLARE_CLASS                                            'b'
   16     7        NEW                                              $4      'B'
          8        DO_FCALL                                      0          
          9        FREE                                                     $4
   19    10        NEW                                              $6      'C'
         11        DO_FCALL                                      0          
         12        FREE                                                     $6
   21    13        DECLARE_CLASS                                            'c'
   23    14      > RETURN                                                   1

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

End of function jsonserialize

End of class B.

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

End of function jsonserialize

End of class C.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.87 ms | 1395 KiB | 13 Q