3v4l.org

run code in 300+ PHP versions simultaneously
<?php class SessionTest implements \SessionHandlerInterface { public function __construct() { session_set_save_handler($this, true); } public function open(string $save_path, string $name): bool { return true; } public function close(): bool { return true; } public function read(string $session_id): string { return ''; } public function write(string $session_id, string $session_data): bool { return true; } public function destroy(string $session_id): bool { return true; } public function gc(int $maxlifetime): bool { return true; } } $SessionTest = new SessionTest();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7rrtb
function name:  (null)
number of ops:  5
compiled vars:  !0 = $SessionTest
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                            'sessiontest'
   41     1        NEW                                              $1      'SessionTest'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
          4      > RETURN                                                   1

Class SessionTest:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7rrtb
function name:  __construct
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'session_set_save_handler'
          1        FETCH_THIS                                       ~0      
          2        SEND_VAL                                                 ~0
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                                 
    8     5      > RETURN                                                   null

End of function __construct

Function open:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7rrtb
function name:  open
number of ops:  5
compiled vars:  !0 = $save_path, !1 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   12     2      > RETURN                                                   <true>
   13     3*       VERIFY_RETURN_TYPE                                       
          4*     > RETURN                                                   null

End of function open

Function close:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7rrtb
function name:  close
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E > > RETURN                                                   <true>
   18     1*       VERIFY_RETURN_TYPE                                       
          2*     > RETURN                                                   null

End of function close

Function read:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7rrtb
function name:  read
number of ops:  4
compiled vars:  !0 = $session_id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   RECV                                             !0      
   22     1      > RETURN                                                   ''
   23     2*       VERIFY_RETURN_TYPE                                       
          3*     > RETURN                                                   null

End of function read

Function write:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7rrtb
function name:  write
number of ops:  5
compiled vars:  !0 = $session_id, !1 = $session_data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   27     2      > RETURN                                                   <true>
   28     3*       VERIFY_RETURN_TYPE                                       
          4*     > RETURN                                                   null

End of function write

Function destroy:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7rrtb
function name:  destroy
number of ops:  4
compiled vars:  !0 = $session_id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   30     0  E >   RECV                                             !0      
   32     1      > RETURN                                                   <true>
   33     2*       VERIFY_RETURN_TYPE                                       
          3*     > RETURN                                                   null

End of function destroy

Function gc:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7rrtb
function name:  gc
number of ops:  4
compiled vars:  !0 = $maxlifetime
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   35     0  E >   RECV                                             !0      
   37     1      > RETURN                                                   <true>
   38     2*       VERIFY_RETURN_TYPE                                       
          3*     > RETURN                                                   null

End of function gc

End of class SessionTest.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.73 ms | 1400 KiB | 15 Q