3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new \DateTime(); try { $date->modify('sda'); } catch(\Exception $e) { echo "Oops!"; } echo $date->format('Y-m-d H:i:s');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
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 = 62) Position 1 = -2
filename:       /in/iOUL9
function name:  (null)
number of ops:  14
compiled vars:  !0 = $date, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'DateTime'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    6     3        INIT_METHOD_CALL                                         !0, 'modify'
          4        SEND_VAL_EX                                              'sda'
          5        DO_FCALL                                      0          
          6      > JMP                                                      ->9
    7     7  E > > CATCH                                       last         'Exception'
    8     8    >   ECHO                                                     'Oops%21'
   12     9    >   INIT_METHOD_CALL                                         !0, 'format'
         10        SEND_VAL_EX                                              'Y-m-d+H%3Ai%3As'
         11        DO_FCALL                                      0  $6      
         12        ECHO                                                     $6
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.03 ms | 1393 KiB | 13 Q