3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { // This doesn't exist $contents = file_get_contents('http://mal.formed.url/no-file.txt'); } catch (Exception $ex) { // This prints, but only after an E_WARNING message echo "exception! ". $ex->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 = 62) Position 1 = -2
Found catch point at position: 5
Branch analysis from position: 5
2 jumps found. (Code = 107) Position 1 = 6, Position 2 = -2
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/85CJQ
function name:  (null)
number of ops:  11
compiled vars:  !0 = $contents, !1 = $ex
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'file_get_contents'
          1        SEND_VAL                                                 'http%3A%2F%2Fmal.formed.url%2Fno-file.txt'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
          4      > JMP                                                      ->10
    6     5  E > > CATCH                                       last         'Exception'
    8     6    >   INIT_METHOD_CALL                                         !1, 'getMessage'
          7        DO_FCALL                                      0  $4      
          8        CONCAT                                           ~5      'exception%21+', $4
          9        ECHO                                                     ~5
    9    10    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.73 ms | 1394 KiB | 15 Q