3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = "2015-04-01"; $temp = explode("-", $date); $year = $temp['0']; $month = $temp['1']; $day = $temp['2']; if(checkdate($month, $day, $year) === false){ echo "11"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 20
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/2kf12
function name:  (null)
number of ops:  21
compiled vars:  !0 = $date, !1 = $temp, !2 = $year, !3 = $month, !4 = $day
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '2015-04-01'
    5     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '-'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $6      
          5        ASSIGN                                                   !1, $6
    7     6        FETCH_DIM_R                                      ~8      !1, 0
          7        ASSIGN                                                   !2, ~8
    8     8        FETCH_DIM_R                                      ~10     !1, 1
          9        ASSIGN                                                   !3, ~10
    9    10        FETCH_DIM_R                                      ~12     !1, 2
         11        ASSIGN                                                   !4, ~12
   11    12        INIT_FCALL                                               'checkdate'
         13        SEND_VAR                                                 !3
         14        SEND_VAR                                                 !4
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                         $14     
         17        TYPE_CHECK                                    4          $14
         18      > JMPZ                                                     ~15, ->20
   12    19    >   ECHO                                                     '11'
   13    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.49 ms | 1386 KiB | 17 Q