3v4l.org

run code in 300+ PHP versions simultaneously
<?php $timestamp = strtotime("May"); if ($timestamp === false) { echo "The string $timestamp is bogus"; } elseif ($timestamp === -1) { echo "strtotime didn't recognize the date string"; } else { echo date('F',strtotime($timestamp)); } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 11
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bLONZ
function name:  (null)
number of ops:  24
compiled vars:  !0 = $timestamp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'strtotime'
          1        SEND_VAL                                                 'May'
          2        DO_ICALL                                         $1      
          3        ASSIGN                                                   !0, $1
    3     4        TYPE_CHECK                                    4          !0
          5      > JMPZ                                                     ~3, ->11
    4     6    >   ROPE_INIT                                     3  ~5      'The+string+'
          7        ROPE_ADD                                      1  ~5      ~5, !0
          8        ROPE_END                                      2  ~4      ~5, '+is+bogus'
          9        ECHO                                                     ~4
         10      > JMP                                                      ->23
    5    11    >   IS_IDENTICAL                                             !0, -1
         12      > JMPZ                                                     ~7, ->15
    6    13    >   ECHO                                                     'strtotime+didn%27t+recognize+the+date+string'
         14      > JMP                                                      ->23
    8    15    >   INIT_FCALL                                               'date'
         16        SEND_VAL                                                 'F'
         17        INIT_FCALL                                               'strtotime'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                         $8      
         20        SEND_VAR                                                 $8
         21        DO_ICALL                                         $9      
         22        ECHO                                                     $9
    9    23    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.65 ms | 1400 KiB | 17 Q