3v4l.org

run code in 300+ PHP versions simultaneously
<?php class P implements \SessionUpdateTimestampHandlerInterface { #[\ReturnTypeWillChange] public function validateId(string $id) { return TRUE; } #[\ReturnTypeWillChange] public function updateTimestamp(string $id, string $data) { return TRUE; } } class C extends P implements \SessionUpdateTimestampHandlerInterface { public function validateId($id) {} } $c = new C(); print("ok");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1fi6I
function name:  (null)
number of ops:  7
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                            'p'
   11     1        DECLARE_CLASS                                            'c', 'p'
   15     2        NEW                                              $1      'C'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $1
   17     5        ECHO                                                     'ok'
          6      > RETURN                                                   1

Class P:
Function validateid:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1fi6I
function name:  validateId
number of ops:  3
compiled vars:  !0 = $id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1      > RETURN                                                   <true>
          2*     > RETURN                                                   null

End of function validateid

Function updatetimestamp:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1fi6I
function name:  updateTimestamp
number of ops:  4
compiled vars:  !0 = $id, !1 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2      > RETURN                                                   <true>
          3*     > RETURN                                                   null

End of function updatetimestamp

End of class P.

Class C:
Function validateid:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1fi6I
function name:  validateId
number of ops:  2
compiled vars:  !0 = $id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
          1      > RETURN                                                   null

End of function validateid

End of class C.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.57 ms | 976 KiB | 13 Q