3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value2 = 'time: 1376952971'; $pieces3 = explode(":", $value2); $checkiftime = $pieces3[0]; echo '$checkiftime: ' . $checkiftime . PHP_EOL;; if ($checkiftime == 'time') { echo "Yes!"; } else { echo "Oh no!"; }
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/sZo1U
function name:  (null)
number of ops:  17
compiled vars:  !0 = $value2, !1 = $pieces3, !2 = $checkiftime
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'time%3A+1376952971'
    3     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%3A'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    4     6        FETCH_DIM_R                                      ~6      !1, 0
          7        ASSIGN                                                   !2, ~6
    5     8        CONCAT                                           ~8      '%24checkiftime%3A+', !2
          9        CONCAT                                           ~9      ~8, '%0A'
         10        ECHO                                                     ~9
    6    11        IS_EQUAL                                                 !2, 'time'
         12      > JMPZ                                                     ~10, ->15
    8    13    >   ECHO                                                     'Yes%21'
         14      > JMP                                                      ->16
   12    15    >   ECHO                                                     'Oh+no%21'
   13    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.83 ms | 1395 KiB | 15 Q