3v4l.org

run code in 500+ 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 = 14
Branch analysis from position: 14
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 = 61) Position 1 = -2
filename:       /in/GeNpF
function name:  (null)
number of ops:  16
compiled vars:  !0 = $v, !1 = $e
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                         'PHP+Version%3A+8.5.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                                                          ->14
   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      > INIT_FCALL                                                   'exit'
         13*       DO_ICALL                                                     
   17    14    >   ECHO                                                         'Did+not+catch+%27Catchable+fatal+error%27'
         15      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
166.57 ms | 2572 KiB | 14 Q