3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tripStart = new DateTime('01/09/2013'); $tripEnd = new DateTime('02/09/2013'); $nightStart = 23; $nightEnd = 5; $duration = $tripStart->diff($tripStart, $tripEnd); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ebZtZ
function name:  (null)
number of ops:  16
compiled vars:  !0 = $tripStart, !1 = $tripEnd, !2 = $nightStart, !3 = $nightEnd, !4 = $duration
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $5      'DateTime'
          1        SEND_VAL_EX                                              '01%2F09%2F2013'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $5
    3     4        NEW                                              $8      'DateTime'
          5        SEND_VAL_EX                                              '02%2F09%2F2013'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $8
    5     8        ASSIGN                                                   !2, 23
    6     9        ASSIGN                                                   !3, 5
    8    10        INIT_METHOD_CALL                                         !0, 'diff'
         11        SEND_VAR_EX                                              !0
         12        SEND_VAR_EX                                              !1
         13        DO_FCALL                                      0  $13     
         14        ASSIGN                                                   !4, $13
    9    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.61 ms | 1393 KiB | 13 Q