3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "start skript..\n"; class CollatorExt extends Collator { public static function create() { return new self(); } } try { $collExt = CollatorExt::create('de_DE'); //object(CollatorExt) } catch (\Throwable | \Error $t) { echo "an error occured \n"; echo $t->getMessage(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 7
Branch analysis from position: 7
2 jumps found. (Code = 107) Position 1 = 8, Position 2 = 9
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 107) Position 1 = 10, Position 2 = -2
Branch analysis from position: 10
Found catch point at position: 9
Branch analysis from position: 9
filename:       /in/0fFNo
function name:  (null)
number of ops:  15
compiled vars:  !0 = $collExt, !1 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ECHO                                                     'start+skript..%0A'
    4     1        DECLARE_CLASS                                            'collatorext', 'collator'
   14     2        INIT_STATIC_METHOD_CALL                                  'CollatorExt', 'create'
          3        SEND_VAL_EX                                              'de_DE'
          4        DO_FCALL                                      0  $2      
          5        ASSIGN                                                   !0, $2
          6      > JMP                                                      ->14
   15     7  E > > CATCH                                                    'Throwable', ->9
          8    > > JMP                                                      ->10
          9  E > > CATCH                                       last         'Error'
   16    10    >   ECHO                                                     'an+error+occured+%0A'
   17    11        INIT_METHOD_CALL                                         !1, 'getMessage'
         12        DO_FCALL                                      0  $4      
         13        ECHO                                                     $4
   18    14    > > RETURN                                                   1

Class CollatorExt:
Function create:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0fFNo
function name:  create
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                          self                $0      
          1        DO_FCALL                                      0          
          2      > RETURN                                                   $0
    9     3*     > RETURN                                                   null

End of function create

End of class CollatorExt.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
216.02 ms | 997 KiB | 13 Q