3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = DateTime; echo date.format('Y');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ukj3g
function name:  (null)
number of ops:  9
compiled vars:  !0 = $date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_CONSTANT                                   ~1      'DateTime'
          1        ASSIGN                                                   !0, ~1
    3     2        FETCH_CONSTANT                                   ~3      'date'
          3        INIT_FCALL_BY_NAME                                       'format'
          4        SEND_VAL_EX                                              'Y'
          5        DO_FCALL                                      0  $4      
          6        CONCAT                                           ~5      ~3, $4
          7        ECHO                                                     ~5
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.54 ms | 1403 KiB | 13 Q