3v4l.org

run code in 500+ PHP versions simultaneously
<?php try { print_r(new Datetime('@-1 .5')); } catch (Exception $e) { echo $e->getMessage() . "\n"; } try { print_r(new Datetime('.5')); } catch (Exception $e) { echo $e->getMessage() . "\n"; } try { print_r(new Datetime('@-1.5')); } catch (Exception $e) { echo $e->getMessage() . "\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 36
Branch analysis from position: 36
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 = 42) Position 1 = 24
Branch analysis from position: 24
Found catch point at position: 19
Branch analysis from position: 19
2 jumps found. (Code = 107) Position 1 = 20, Position 2 = -2
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 36
Branch analysis from position: 36
Found catch point at position: 31
Branch analysis from position: 31
2 jumps found. (Code = 107) Position 1 = 32, Position 2 = -2
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rKOAb
function name:  (null)
number of ops:  37
compiled vars:  !0 = $e
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                                   'print_r'
          1        NEW                                                  $1      'Datetime'
          2        SEND_VAL_EX                                                  '%40-1+.5'
          3        DO_FCALL                                          0          
          4        SEND_VAR                                                     $1
          5        DO_ICALL                                                     
          6      > JMP                                                          ->12
    5     7  E > > CATCH                                           last         'Exception'
          8    >   INIT_METHOD_CALL                                             !0, 'getMessage'
          9        DO_FCALL                                          0  $4      
         10        CONCAT                                               ~5      $4, '%0A'
         11        ECHO                                                         ~5
    8    12    >   INIT_FCALL                                                   'print_r'
         13        NEW                                                  $6      'Datetime'
         14        SEND_VAL_EX                                                  '.5'
         15        DO_FCALL                                          0          
         16        SEND_VAR                                                     $6
         17        DO_ICALL                                                     
         18      > JMP                                                          ->24
    9    19  E > > CATCH                                           last         'Exception'
         20    >   INIT_METHOD_CALL                                             !0, 'getMessage'
         21        DO_FCALL                                          0  $9      
         22        CONCAT                                               ~10     $9, '%0A'
         23        ECHO                                                         ~10
   12    24    >   INIT_FCALL                                                   'print_r'
         25        NEW                                                  $11     'Datetime'
         26        SEND_VAL_EX                                                  '%40-1.5'
         27        DO_FCALL                                          0          
         28        SEND_VAR                                                     $11
         29        DO_ICALL                                                     
         30      > JMP                                                          ->36
   13    31  E > > CATCH                                           last         'Exception'
         32    >   INIT_METHOD_CALL                                             !0, 'getMessage'
         33        DO_FCALL                                          0  $14     
         34        CONCAT                                               ~15     $14, '%0A'
         35        ECHO                                                         ~15
         36    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
124.7 ms | 482 KiB | 8 Q