3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'Not Good'; // previous to PHP 5.1.0 you would compare with -1, instead of false if (($timestamp = strtotime($str)) === false) { echo "The string ($str) is bogus"; } else { echo "$str == " . date('l dS \o\f F Y h:i:s A', $timestamp); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 12
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ngjUP
function name:  (null)
number of ops:  21
compiled vars:  !0 = $str, !1 = $timestamp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Not+Good'
    5     1        INIT_FCALL                                               'strtotime'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                           ~4      !1, $3
          5        TYPE_CHECK                                    4          ~4
          6      > JMPZ                                                     ~5, ->12
    6     7    >   ROPE_INIT                                     3  ~7      'The+string+%28'
          8        ROPE_ADD                                      1  ~7      ~7, !0
          9        ROPE_END                                      2  ~6      ~7, '%29+is+bogus'
         10        ECHO                                                     ~6
         11      > JMP                                                      ->20
    8    12    >   NOP                                                      
         13        FAST_CONCAT                                      ~9      !0, '+%3D%3D+'
         14        INIT_FCALL                                               'date'
         15        SEND_VAL                                                 'l+dS+%5Co%5Cf+F+Y+h%3Ai%3As+A'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                         $10     
         18        CONCAT                                           ~11     ~9, $10
         19        ECHO                                                     ~11
    9    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.82 ms | 1386 KiB | 17 Q