3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "PHP Version: " . PHP_VERSION . "\n"; try { $v = new DateTime(); $v = (string) $v; } catch (Error $e) { echo "Caught 'Catchable fatal error' with message: " . $e->getMessage(); die(); } echo "Did not catch 'Catchable fatal error'";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) 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 = 79) Position 1 = -2
filename:       /in/GeNpF
function name:  (null)
number of ops:  15
compiled vars:  !0 = $v, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                     'PHP+Version%3A+8.0.0%0A'
    7     1        NEW                                              $2      'DateTime'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    8     4        CAST                                          6  ~5      !0
          5        ASSIGN                                                   !0, ~5
          6      > JMP                                                      ->13
   10     7  E > > CATCH                                       last         'Error'
   12     8    >   INIT_METHOD_CALL                                         !1, 'getMessage'
          9        DO_FCALL                                      0  $7      
         10        CONCAT                                           ~8      'Caught+%27Catchable+fatal+error%27+with+message%3A+', $7
         11        ECHO                                                     ~8
   13    12      > EXIT                                                     
   17    13    >   ECHO                                                     'Did+not+catch+%27Catchable+fatal+error%27'
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.83 ms | 1393 KiB | 13 Q