3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value2 = 'time: 1376952971'; $pieces3 = explode(":", $value2); $checkiftime = $pieces3[0]; echo '$checkiftime: ' . $checkiftime; if ($checkiftime == 'time' . PHP_EOL) { echo "Yes!"; } else { echo "Oh no!"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VOa0i
function name:  (null)
number of ops:  16
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        ECHO                                                     ~8
    6    10        IS_EQUAL                                                 !2, 'time%0A'
         11      > JMPZ                                                     ~9, ->14
    8    12    >   ECHO                                                     'Yes%21'
         13      > JMP                                                      ->15
   12    14    >   ECHO                                                     'Oh+no%21'
   13    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.63 ms | 1394 KiB | 15 Q