3v4l.org

run code in 300+ PHP versions simultaneously
<?php $now = new DateTime; $dt = DateTime::createFromFormat('Y-m-d H:i:s', '2015-10-30 00:00:00'); var_dump($dt < $now);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lo7lD
function name:  (null)
number of ops:  13
compiled vars:  !0 = $now, !1 = $dt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'DateTime'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    4     3        INIT_STATIC_METHOD_CALL                                  'DateTime', 'createFromFormat'
          4        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
          5        SEND_VAL                                                 '2015-10-30+00%3A00%3A00'
          6        DO_FCALL                                      0  $5      
          7        ASSIGN                                                   !1, $5
    5     8        INIT_FCALL                                               'var_dump'
          9        IS_SMALLER                                       ~7      !1, !0
         10        SEND_VAL                                                 ~7
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.44 ms | 1394 KiB | 15 Q