3v4l.org

run code in 300+ PHP versions simultaneously
<?php class SapiProvider implements ArrayAccess { public function offsetGet($offset) { exit("I'm sorry, I can't let you do that Dave"); } public function offsetExists($offset) { exit("I'm sorry, I can't let you do that Dave"); } public function offsetSet($offset, $value) { exit("I'm sorry, I can't let you do that Dave"); } public function offsetUnset($offset) { exit("I'm sorry, I can't let you do that Dave"); } public static function register() { foreach ($GLOBALS as &$global) { $global = new self(); } } } SapiProvider::register();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lKsDN
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                            'sapiprovider'
   35     1        INIT_STATIC_METHOD_CALL                                  'SapiProvider', 'register'
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

Class SapiProvider:
Function offsetget:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/lKsDN
function name:  offsetGet
number of ops:  3
compiled vars:  !0 = $offset
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    8     1      > EXIT                                                     'I%27m+sorry%2C+I+can%27t+let+you+do+that+Dave'
    9     2*     > RETURN                                                   null

End of function offsetget

Function offsetexists:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/lKsDN
function name:  offsetExists
number of ops:  3
compiled vars:  !0 = $offset
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
   13     1      > EXIT                                                     'I%27m+sorry%2C+I+can%27t+let+you+do+that+Dave'
   14     2*     > RETURN                                                   null

End of function offsetexists

Function offsetset:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/lKsDN
function name:  offsetSet
number of ops:  4
compiled vars:  !0 = $offset, !1 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   18     2      > EXIT                                                     'I%27m+sorry%2C+I+can%27t+let+you+do+that+Dave'
   19     3*     > RETURN                                                   null

End of function offsetset

Function offsetunset:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/lKsDN
function name:  offsetUnset
number of ops:  3
compiled vars:  !0 = $offset
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   RECV                                             !0      
   23     1      > EXIT                                                     'I%27m+sorry%2C+I+can%27t+let+you+do+that+Dave'
   24     2*     > RETURN                                                   null

End of function offsetunset

Function register:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 2, Position 2 = 7
Branch analysis from position: 2
2 jumps found. (Code = 126) Position 1 = 3, Position 2 = 7
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/lKsDN
function name:  register
number of ops:  9
compiled vars:  !0 = $global
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   28     0  E >   FETCH_W                      global              $1      'GLOBALS'
          1      > FE_RESET_RW                                      $2      $1, ->7
          2    > > FE_FETCH_RW                                              $2, !0, ->7
   29     3    >   NEW                          self                $3      
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $3
   28     6      > JMP                                                      ->2
          7    >   FE_FREE                                                  $2
   31     8      > RETURN                                                   null

End of function register

End of class SapiProvider.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.6 ms | 1399 KiB | 13 Q