3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dateofbirth = '30/11/1990'; list($dd,$mm,$yyyy) = explode('/',$dateofbirth); if (!checkdate($mm,$dd,$yyyy)) { echo 'this should fail!'; } else echo 'passed valid date?';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 21
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PerGB
function name:  (null)
number of ops:  23
compiled vars:  !0 = $dateofbirth, !1 = $dd, !2 = $mm, !3 = $yyyy
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '30%2F11%2F1990'
    3     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%2F'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $5      
          5        FETCH_LIST_R                                     $6      $5, 0
          6        ASSIGN                                                   !1, $6
          7        FETCH_LIST_R                                     $8      $5, 1
          8        ASSIGN                                                   !2, $8
          9        FETCH_LIST_R                                     $10     $5, 2
         10        ASSIGN                                                   !3, $10
         11        FREE                                                     $5
    4    12        INIT_FCALL                                               'checkdate'
         13        SEND_VAR                                                 !2
         14        SEND_VAR                                                 !1
         15        SEND_VAR                                                 !3
         16        DO_ICALL                                         $12     
         17        BOOL_NOT                                         ~13     $12
         18      > JMPZ                                                     ~13, ->21
    5    19    >   ECHO                                                     'this+should+fail%21'
         20      > JMP                                                      ->22
    8    21    >   ECHO                                                     'passed+valid+date%3F'
         22    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.59 ms | 1395 KiB | 17 Q