3v4l.org

run code in 300+ PHP versions simultaneously
<?php header('Content-Type: text/html; charset=ISO-8859-1'); //throw new Exception('é'); try { throw new Exception('é'); } catch (Exception $e) { print 'Character encoding is: '.mb_internal_encoding().'<br>'; print phpversion().'<br>'; echo 'Message: '. $e->getMessage(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
Found catch point at position: 8
Branch analysis from position: 8
2 jumps found. (Code = 107) Position 1 = 9, Position 2 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lLYP9
function name:  (null)
number of ops:  23
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'header'
          1        SEND_VAL                                                 'Content-Type%3A+text%2Fhtml%3B+charset%3DISO-8859-1'
          2        DO_ICALL                                                 
    8     3        NEW                                              $2      'Exception'
          4        SEND_VAL_EX                                              '%C3%A9'
          5        DO_FCALL                                      0          
          6      > THROW                                         0          $2
          7*       JMP                                                      ->22
    9     8  E > > CATCH                                       last         'Exception'
   10     9    >   INIT_FCALL                                               'mb_internal_encoding'
         10        DO_ICALL                                         $4      
         11        CONCAT                                           ~5      'Character+encoding+is%3A+', $4
         12        CONCAT                                           ~6      ~5, '%3Cbr%3E'
         13        ECHO                                                     ~6
   11    14        INIT_FCALL                                               'phpversion'
         15        DO_ICALL                                         $7      
         16        CONCAT                                           ~8      $7, '%3Cbr%3E'
         17        ECHO                                                     ~8
   12    18        INIT_METHOD_CALL                                         !0, 'getMessage'
         19        DO_FCALL                                      0  $9      
         20        CONCAT                                           ~10     'Message%3A+', $9
         21        ECHO                                                     ~10
   13    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.82 ms | 940 KiB | 20 Q