3v4l.org

run code in 300+ PHP versions simultaneously
<?php $retVal = 0; $t1 = strtotime('2015-02-02'); $t2 = strtotime('2015-02-02'); $retVal = ($t1 < $t2) ? -1 : 1; echo $retVal; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9a5Wm
function name:  (null)
number of ops:  17
compiled vars:  !0 = $retVal, !1 = $t1, !2 = $t2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0
    3     1        INIT_FCALL                                               'strtotime'
          2        SEND_VAL                                                 '2015-02-02'
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
    4     5        INIT_FCALL                                               'strtotime'
          6        SEND_VAL                                                 '2015-02-02'
          7        DO_ICALL                                         $6      
          8        ASSIGN                                                   !2, $6
    6     9        IS_SMALLER                                               !1, !2
         10      > JMPZ                                                     ~8, ->13
         11    >   QM_ASSIGN                                        ~9      -1
         12      > JMP                                                      ->14
         13    >   QM_ASSIGN                                        ~9      1
         14    >   ASSIGN                                                   !0, ~9
    8    15        ECHO                                                     !0
   10    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.95 ms | 1395 KiB | 15 Q