3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = new DateTimeImmutable(); $y = new DateTimeImmutable(); $y = $y->add(new DateInterval("P1D")); var_dump((true ? $x : $y)->format('T'));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/65Lgb
function name:  (null)
number of ops:  24
compiled vars:  !0 = $x, !1 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'DateTimeImmutable'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    4     3        NEW                                              $5      'DateTimeImmutable'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $5
    5     6        INIT_METHOD_CALL                                         !1, 'add'
          7        NEW                                              $8      'DateInterval'
          8        SEND_VAL_EX                                              'P1D'
          9        DO_FCALL                                      0          
         10        SEND_VAR_NO_REF_EX                                       $8
         11        DO_FCALL                                      0  $10     
         12        ASSIGN                                                   !1, $10
    8    13        INIT_FCALL                                               'var_dump'
         14      > JMPZ                                                     <true>, ->17
         15    >   QM_ASSIGN                                        ~12     !0
         16      > JMP                                                      ->18
         17    >   QM_ASSIGN                                        ~12     !1
         18    >   INIT_METHOD_CALL                                         ~12, 'format'
         19        SEND_VAL_EX                                              'T'
         20        DO_FCALL                                      0  $13     
         21        SEND_VAR                                                 $13
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.13 ms | 1395 KiB | 15 Q