3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Test; class AWS{ private static $config; public static function setup($config){ if(isset(self::$config)){ throw new Exception("AWS has already been setup."); } self::$config = $config; } } Test\AWS::setup('foo');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6lfiN
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   INIT_STATIC_METHOD_CALL                                  'Test%5CTest%5CAWS', 'setup'
          1        SEND_VAL_EX                                              'foo'
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

Class Test\AWS:
Function setup:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 7
Branch analysis from position: 3
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6lfiN
function name:  setup
number of ops:  10
compiled vars:  !0 = $config
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
    9     1        ISSET_ISEMPTY_STATIC_PROP                                'config'
          2      > JMPZ                                                     ~1, ->7
   10     3    >   NEW                                              $2      'Test%5CException'
          4        SEND_VAL_EX                                              'AWS+has+already+been+setup.'
          5        DO_FCALL                                      0          
          6      > THROW                                         0          $2
   12     7    >   ASSIGN_STATIC_PROP                                       'config'
          8        OP_DATA                                                  !0
   13     9      > RETURN                                                   null

End of function setup

End of class Test\AWS.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.57 ms | 1393 KiB | 13 Q