3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('zend.exception_ignore_args', '1'); try { match (1) { }; } catch (Error $e) { echo $e->getMessage(), PHP_EOL; } try { match ("foo bar baz foo bar baz") { }; } catch (Error $e) { echo $e->getMessage(), PHP_EOL; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
1 jumps found. (Code = 197) Position 1 = -2
Found catch point at position: 7
Branch analysis from position: 7
2 jumps found. (Code = 107) Position 1 = 8, Position 2 = -2
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 197) Position 1 = -2
Found catch point at position: 15
Branch analysis from position: 15
2 jumps found. (Code = 107) Position 1 = 16, Position 2 = -2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Xen86
function name:  (null)
number of ops:  21
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'ini_set'
          1        SEND_VAL                                                 'zend.exception_ignore_args'
          2        SEND_VAL                                                 '1'
          3        DO_ICALL                                                 
    6     4      > JMP                                                      ->5
          5    > > MATCH_ERROR                                              1
          6*       JMP                                                      ->12
    7     7  E > > CATCH                                       last         'Error'
          8    >   INIT_METHOD_CALL                                         !0, 'getMessage'
          9        DO_FCALL                                      0  $3      
         10        ECHO                                                     $3
         11        ECHO                                                     '%0A'
   10    12      > JMP                                                      ->13
         13    > > MATCH_ERROR                                              'foo+bar+baz+foo+bar+baz'
         14*       JMP                                                      ->20
   11    15  E > > CATCH                                       last         'Error'
         16    >   INIT_METHOD_CALL                                         !0, 'getMessage'
         17        DO_FCALL                                      0  $5      
         18        ECHO                                                     $5
         19        ECHO                                                     '%0A'
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.78 ms | 1002 KiB | 14 Q