3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.35 ms | 1394 KiB | 15 Q