3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = new DateTime('2017-10-03 12:00:00'); $five_thirty = clone $test; $five_thirty = $five_thirty->setTime(17,30,0); var_dump( $test, $five_thirty, $test > $five_thirty );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LUXHO
function name:  (null)
number of ops:  19
compiled vars:  !0 = $test, !1 = $five_thirty
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'DateTime'
          1        SEND_VAL_EX                                              '2017-10-03+12%3A00%3A00'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    4     4        CLONE                                            ~5      !0
          5        ASSIGN                                                   !1, ~5
    5     6        INIT_METHOD_CALL                                         !1, 'setTime'
          7        SEND_VAL_EX                                              17
          8        SEND_VAL_EX                                              30
          9        SEND_VAL_EX                                              0
         10        DO_FCALL                                      0  $7      
         11        ASSIGN                                                   !1, $7
    7    12        INIT_FCALL                                               'var_dump'
    8    13        SEND_VAR                                                 !0
    9    14        SEND_VAR                                                 !1
   10    15        IS_SMALLER                                       ~9      !1, !0
         16        SEND_VAL                                                 ~9
         17        DO_ICALL                                                 
   11    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
125.74 ms | 1399 KiB | 15 Q