3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dt = new DateTimeImmutable('now'); echo $dt->getTimestamp() . "\n"; $dt->__construct('tomorrow'); echo $dt->getTimestamp() . "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Eu17b
function name:  (null)
number of ops:  16
compiled vars:  !0 = $dt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'DateTimeImmutable'
          1        SEND_VAL_EX                                              'now'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
    4     4        INIT_METHOD_CALL                                         !0, 'getTimestamp'
          5        DO_FCALL                                      0  $4      
          6        CONCAT                                           ~5      $4, '%0A'
          7        ECHO                                                     ~5
    6     8        INIT_METHOD_CALL                                         !0, '__construct'
          9        SEND_VAL_EX                                              'tomorrow'
         10        DO_FCALL                                      0          
    7    11        INIT_METHOD_CALL                                         !0, 'getTimestamp'
         12        DO_FCALL                                      0  $7      
         13        CONCAT                                           ~8      $7, '%0A'
         14        ECHO                                                     ~8
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.13 ms | 1441 KiB | 13 Q