3v4l.org

run code in 300+ PHP versions simultaneously
<?php function IsDate( $Str ) { $Stamp = strtotime( $Str ); $Month = date( 'm', $Stamp ); $Day = date( 'd', $Stamp ); $Year = date( 'Y', $Stamp ); return checkdate( $Month, $Day, $Year ); } echo IsDate('1.1.A');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jZrro
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'isdate'
          1        SEND_VAL                                                 '1.1.A'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
          4      > RETURN                                                   1

Function isdate:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jZrro
function name:  IsDate
number of ops:  27
compiled vars:  !0 = $Str, !1 = $Stamp, !2 = $Month, !3 = $Day, !4 = $Year
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'strtotime'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !1, $5
    6     5        INIT_FCALL                                               'date'
          6        SEND_VAL                                                 'm'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $7      
          9        ASSIGN                                                   !2, $7
    7    10        INIT_FCALL                                               'date'
         11        SEND_VAL                                                 'd'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                         $9      
         14        ASSIGN                                                   !3, $9
    8    15        INIT_FCALL                                               'date'
         16        SEND_VAL                                                 'Y'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                         $11     
         19        ASSIGN                                                   !4, $11
   10    20        INIT_FCALL                                               'checkdate'
         21        SEND_VAR                                                 !2
         22        SEND_VAR                                                 !3
         23        SEND_VAR                                                 !4
         24        DO_ICALL                                         $13     
         25      > RETURN                                                   $13
   11    26*     > RETURN                                                   null

End of function isdate

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.67 ms | 1398 KiB | 20 Q