3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = time(); $b = $a + 1000; $c = $b > time() ? 1 : 2; var_dump( $c );
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/q5oJA
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        ADD                                              ~5      !0, 1000
          4        ASSIGN                                                   !1, ~5
    6     5        INIT_FCALL                                               'time'
          6        DO_ICALL                                         $7      
          7        IS_SMALLER                                               $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 8.0.0


preferences:
152.36 ms | 1394 KiB | 17 Q