3v4l.org

run code in 300+ PHP versions simultaneously
<?php print_r(getdate(null)['year']); echo "-"; print_r(getdate()['year']); echo "-"; print_r(getdate(0)['year']);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PeZhr
function name:  (null)
number of ops:  23
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'print_r'
          1        INIT_FCALL                                               'getdate'
          2        SEND_VAL                                                 null
          3        DO_ICALL                                         $0      
          4        FETCH_DIM_R                                      ~1      $0, 'year'
          5        SEND_VAL                                                 ~1
          6        DO_ICALL                                                 
    4     7        ECHO                                                     '-'
    5     8        INIT_FCALL                                               'print_r'
          9        INIT_FCALL                                               'getdate'
         10        DO_ICALL                                         $3      
         11        FETCH_DIM_R                                      ~4      $3, 'year'
         12        SEND_VAL                                                 ~4
         13        DO_ICALL                                                 
    6    14        ECHO                                                     '-'
    7    15        INIT_FCALL                                               'print_r'
         16        INIT_FCALL                                               'getdate'
         17        SEND_VAL                                                 0
         18        DO_ICALL                                         $6      
         19        FETCH_DIM_R                                      ~7      $6, 'year'
         20        SEND_VAL                                                 ~7
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
331.97 ms | 1395 KiB | 18 Q