3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = time(); $b = $a - 1000; $c = $b > time() ? 1 : 2; var_dump( $c );
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
Jump found. Position 1 = 12
Branch analysis from position: 12
Jump found. Position 1 = -2
Branch analysis from position: 11
Jump found. Position 1 = -2
filename:       /in/KZbDM
function name:  (null)
number of ops:  17
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   INIT_FCALL                                               'time'
         1        DO_ICALL                                         $3      
         2        ASSIGN                                                   !0, $3
   4     3        SUB                                              ~5      !0, 1000
         4        ASSIGN                                                   !1, ~5
   6     5        INIT_FCALL                                               'time'
         6        DO_ICALL                                         $7      
         7        IS_SMALLER                                       ~8      $7, !1
         8      > JMPZ                                                     ~8, ->11
         9    >   QM_ASSIGN                                        ~9      1
        10      > JMP                                                      ->12
        11    >   QM_ASSIGN                                        ~9      2
        12    >   ASSIGN                                                   !2, ~9
   8    13        INIT_FCALL                                               'var_dump'
        14        SEND_VAR                                                 !2
        15        DO_ICALL                                                 
        16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0