3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=0); function acceptArray(array $x) {} try { acceptArray(""); } catch (TypeError $e) { echo get_class($e) . ": " . $e->getMessage() . "\n"; } try { var_dump(locale_compose("")); } catch (TypeError $e) { echo get_class($e) . ": " . $e->getMessage() . "\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 4
Branch analysis from position: 4
2 jumps found. (Code = 107) Position 1 = 5, Position 2 = -2
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
Found catch point at position: 19
Branch analysis from position: 19
2 jumps found. (Code = 107) Position 1 = 20, Position 2 = -2
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CTrli
function name:  (null)
number of ops:  28
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'acceptarray'
          1        SEND_VAL                                                 ''
          2        DO_FCALL                                      0          
          3      > JMP                                                      ->12
    9     4  E > > CATCH                                       last         'TypeError'
   10     5    >   GET_CLASS                                        ~2      !0
          6        CONCAT                                           ~3      ~2, '%3A+'
          7        INIT_METHOD_CALL                                         !0, 'getMessage'
          8        DO_FCALL                                      0  $4      
          9        CONCAT                                           ~5      ~3, $4
         10        CONCAT                                           ~6      ~5, '%0A'
         11        ECHO                                                     ~6
   14    12    >   INIT_FCALL                                               'var_dump'
         13        INIT_FCALL_BY_NAME                                       'locale_compose'
         14        SEND_VAL_EX                                              ''
         15        DO_FCALL                                      0  $7      
         16        SEND_VAR                                                 $7
         17        DO_ICALL                                                 
         18      > JMP                                                      ->27
   15    19  E > > CATCH                                       last         'TypeError'
   16    20    >   GET_CLASS                                        ~9      !0
         21        CONCAT                                           ~10     ~9, '%3A+'
         22        INIT_METHOD_CALL                                         !0, 'getMessage'
         23        DO_FCALL                                      0  $11     
         24        CONCAT                                           ~12     ~10, $11
         25        CONCAT                                           ~13     ~12, '%0A'
         26        ECHO                                                     ~13
   17    27    > > RETURN                                                   1

Function acceptarray:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CTrli
function name:  acceptArray
number of ops:  2
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1      > RETURN                                                   null

End of function acceptarray

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.33 ms | 1440 KiB | 15 Q