3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { sprintf("%s"); } catch (Throwable $e) { var_dump($e->getMessage()); } try { vsprintf("%s", []); } catch (Throwable $e) { var_dump($e->getMessage()); }
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 = 42) Position 1 = 21
Branch analysis from position: 21
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 = 21
Branch analysis from position: 21
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/u2N69
function name:  (null)
number of ops:  22
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'sprintf'
          1        SEND_VAL                                                 '%25s'
          2        DO_ICALL                                                 
          3      > JMP                                                      ->10
    5     4  E > > CATCH                                       last         'Throwable'
    6     5    >   INIT_FCALL                                               'var_dump'
          6        INIT_METHOD_CALL                                         !0, 'getMessage'
          7        DO_FCALL                                      0  $2      
          8        SEND_VAR                                                 $2
          9        DO_ICALL                                                 
   11    10    >   INIT_FCALL                                               'vsprintf'
         11        SEND_VAL                                                 '%25s'
         12        SEND_VAL                                                 <array>
         13        DO_ICALL                                                 
         14      > JMP                                                      ->21
   12    15  E > > CATCH                                       last         'Throwable'
   13    16    >   INIT_FCALL                                               'var_dump'
         17        INIT_METHOD_CALL                                         !0, 'getMessage'
         18        DO_FCALL                                      0  $5      
         19        SEND_VAR                                                 $5
         20        DO_ICALL                                                 
   14    21    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.77 ms | 1012 KiB | 16 Q