3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'a1b2c3 abc123'; $part = explode(' ', $str); $reverted = strrev($part[1]); if ($part[0] === $reverted) { echo 'YES'; } else { echo 'NO'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/10SH5
function name:  (null)
number of ops:  18
compiled vars:  !0 = $str, !1 = $part, !2 = $reverted
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'a1b2c3+abc123'
    4     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '+'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    5     6        INIT_FCALL                                               'strrev'
          7        FETCH_DIM_R                                      ~6      !1, 1
          8        SEND_VAL                                                 ~6
          9        DO_ICALL                                         $7      
         10        ASSIGN                                                   !2, $7
    6    11        FETCH_DIM_R                                      ~9      !1, 0
         12        IS_IDENTICAL                                             !2, ~9
         13      > JMPZ                                                     ~10, ->16
    7    14    >   ECHO                                                     'YES'
         15      > JMP                                                      ->17
    9    16    >   ECHO                                                     'NO'
   10    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149 ms | 1395 KiB | 17 Q