3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value='13/13/2014'; $tabDt = explode('/', $value); echo '<pre>'.print_r($tabDt, true).'</pre>'; if(checkdate($tabDt[1], $tabDt[0], $tabDt[2])) echo 'cool'; else echo 'pas cool';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 24
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MrmrQ
function name:  (null)
number of ops:  26
compiled vars:  !0 = $value, !1 = $tabDt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '13%2F13%2F2014'
    3     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%2F'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    4     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !1
          8        SEND_VAL                                                 <true>
          9        DO_ICALL                                         $5      
         10        CONCAT                                           ~6      '%3Cpre%3E', $5
         11        CONCAT                                           ~7      ~6, '%3C%2Fpre%3E'
         12        ECHO                                                     ~7
    5    13        INIT_FCALL                                               'checkdate'
         14        FETCH_DIM_R                                      ~8      !1, 1
         15        SEND_VAL                                                 ~8
         16        FETCH_DIM_R                                      ~9      !1, 0
         17        SEND_VAL                                                 ~9
         18        FETCH_DIM_R                                      ~10     !1, 2
         19        SEND_VAL                                                 ~10
         20        DO_ICALL                                         $11     
         21      > JMPZ                                                     $11, ->24
    6    22    >   ECHO                                                     'cool'
         23      > JMP                                                      ->25
    8    24    >   ECHO                                                     'pas+cool'
         25    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.29 ms | 1395 KiB | 19 Q