3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = new \DateTime(); $bar1 = '2018-01-27'; $bar2 = '2018-01-24'; var_dump($foo > $bar1); // false var_dump($foo > $bar2); // true
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/K8Kg1
function name:  (null)
number of ops:  14
compiled vars:  !0 = $foo, !1 = $bar1, !2 = $bar2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'DateTime'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    4     3        ASSIGN                                                   !1, '2018-01-27'
    5     4        ASSIGN                                                   !2, '2018-01-24'
    7     5        INIT_FCALL                                               'var_dump'
          6        IS_SMALLER                                       ~8      !1, !0
          7        SEND_VAL                                                 ~8
          8        DO_ICALL                                                 
    8     9        INIT_FCALL                                               'var_dump'
         10        IS_SMALLER                                       ~10     !2, !0
         11        SEND_VAL                                                 ~10
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.59 ms | 1394 KiB | 15 Q