3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date1 = date("Y-m-d H:i:s"); sleep(1); $date2 = date("Y-m-d H:i:s"); if($date2 > $date1){ print 'rocks'; } else{ print 'foobar'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3LJk0
function name:  (null)
number of ops:  17
compiled vars:  !0 = $date1, !1 = $date2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    5     4        INIT_FCALL                                               'sleep'
          5        SEND_VAL                                                 1
          6        DO_ICALL                                                 
    6     7        INIT_FCALL                                               'date'
          8        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
          9        DO_ICALL                                         $5      
         10        ASSIGN                                                   !1, $5
    7    11        IS_SMALLER                                               !0, !1
         12      > JMPZ                                                     ~7, ->15
    8    13    >   ECHO                                                     'rocks'
         14      > JMP                                                      ->16
   11    15    >   ECHO                                                     'foobar'
   12    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.99 ms | 1395 KiB | 17 Q