3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t = date('Y-m-d', strtotime(!is_null('2018-03-13 14:15:58') ? '2018-03-13 14:15:58' : '31.12.2200 23:59:59')); var_dump($t);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SrdrX
function name:  (null)
number of ops:  18
compiled vars:  !0 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'Y-m-d'
          2        INIT_FCALL                                               'strtotime'
          3        TYPE_CHECK                                    2  ~1      '2018-03-13+14%3A15%3A58'
          4        BOOL_NOT                                         ~2      ~1
          5      > JMPZ                                                     ~2, ->8
          6    >   QM_ASSIGN                                        ~3      '2018-03-13+14%3A15%3A58'
          7      > JMP                                                      ->9
          8    >   QM_ASSIGN                                        ~3      '31.12.2200+23%3A59%3A59'
          9    >   SEND_VAL                                                 ~3
         10        DO_ICALL                                         $4      
         11        SEND_VAR                                                 $4
         12        DO_ICALL                                         $5      
         13        ASSIGN                                                   !0, $5
    3    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.3 ms | 1395 KiB | 19 Q