3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dt = (new DateTime())->setTimestamp(123456789); var_dump($dt->modify(intval(4) . ' year'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lALMV
function name:  (null)
number of ops:  15
compiled vars:  !0 = $dt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'DateTime'
          1        DO_FCALL                                      0          
          2        INIT_METHOD_CALL                                         $1, 'setTimestamp'
          3        SEND_VAL_EX                                              123456789
          4        DO_FCALL                                      0  $3      
          5        ASSIGN                                                   !0, $3
    5     6        INIT_FCALL                                               'var_dump'
          7        INIT_METHOD_CALL                                         !0, 'modify'
          8        CAST                                          4  ~5      4
          9        CONCAT                                           ~6      ~5, '+year'
         10        SEND_VAL_EX                                              ~6
         11        DO_FCALL                                      0  $7      
         12        SEND_VAR                                                 $7
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.72 ms | 1385 KiB | 15 Q