3v4l.org

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

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

End of function create

End of class CollatorExt.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
204.16 ms | 997 KiB | 13 Q