3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); ini_set('display_errors', 'on'); try { //$x = strtotime('blah'); $x = new DateTime('lol'); } catch ( Exception $e ) { echo $e->getMessage(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 12
Branch analysis from position: 12
2 jumps found. (Code = 107) Position 1 = 13, Position 2 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8jUqY
function name:  (null)
number of ops:  17
compiled vars:  !0 = $x, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 32767
          2        DO_ICALL                                                 
    3     3        INIT_FCALL                                               'ini_set'
          4        SEND_VAL                                                 'display_errors'
          5        SEND_VAL                                                 'on'
          6        DO_ICALL                                                 
    7     7        NEW                                              $4      'DateTime'
          8        SEND_VAL_EX                                              'lol'
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !0, $4
         11      > JMP                                                      ->16
    8    12  E > > CATCH                                       last         'Exception'
    9    13    >   INIT_METHOD_CALL                                         !1, 'getMessage'
         14        DO_FCALL                                      0  $7      
         15        ECHO                                                     $7
   10    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.16 ms | 1399 KiB | 17 Q