3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "25/01/2015"; if(new DateTime($str)===null) { echo "bad!"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/Nk3df
function name:  (null)
number of ops:  8
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '25%2F01%2F2015'
    5     1        NEW                                              $2      'DateTime'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
          4        TYPE_CHECK                                    2          $2
          5      > JMPZ                                                     ~4, ->7
    6     6    >   ECHO                                                     'bad%21'
    7     7    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.88 ms | 1392 KiB | 13 Q