3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sql_dob = date_create_from_format('Y-m-d','1969-03-09'); $today = date_create(); echo date_format($today,'Y'); $age = date_diff($today,$sql_dob); echo date_format($age,'Y'); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/f94Le
function name:  (null)
number of ops:  24
compiled vars:  !0 = $sql_dob, !1 = $today, !2 = $age
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'date_create_from_format'
          1        SEND_VAL                                                 'Y-m-d'
          2        SEND_VAL                                                 '1969-03-09'
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
    5     5        INIT_FCALL                                               'date_create'
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !1, $5
    8     8        INIT_FCALL                                               'date_format'
          9        SEND_VAR                                                 !1
         10        SEND_VAL                                                 'Y'
         11        DO_ICALL                                         $7      
         12        ECHO                                                     $7
    9    13        INIT_FCALL                                               'date_diff'
         14        SEND_VAR                                                 !1
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $8      
         17        ASSIGN                                                   !2, $8
   10    18        INIT_FCALL                                               'date_format'
         19        SEND_VAR                                                 !2
         20        SEND_VAL                                                 'Y'
         21        DO_ICALL                                         $10     
         22        ECHO                                                     $10
   12    23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.4 ms | 1395 KiB | 21 Q