3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'a1b2c3 abc123'; $part = explode(' ', $str); $reverted = strrev($part[1]); $arr1 = str_split($part[1]); $arr2 = str_split($part[0]); if(count(array_diff($arr1, $arr2))){ echo "NO"; } else{ echo "YES"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 29
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ngQ6n
function name:  (null)
number of ops:  31
compiled vars:  !0 = $str, !1 = $part, !2 = $reverted, !3 = $arr1, !4 = $arr2
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                                         $6      
          5        ASSIGN                                                   !1, $6
    5     6        INIT_FCALL                                               'strrev'
          7        FETCH_DIM_R                                      ~8      !1, 1
          8        SEND_VAL                                                 ~8
          9        DO_ICALL                                         $9      
         10        ASSIGN                                                   !2, $9
    7    11        INIT_FCALL                                               'str_split'
         12        FETCH_DIM_R                                      ~11     !1, 1
         13        SEND_VAL                                                 ~11
         14        DO_ICALL                                         $12     
         15        ASSIGN                                                   !3, $12
    8    16        INIT_FCALL                                               'str_split'
         17        FETCH_DIM_R                                      ~14     !1, 0
         18        SEND_VAL                                                 ~14
         19        DO_ICALL                                         $15     
         20        ASSIGN                                                   !4, $15
   10    21        INIT_FCALL                                               'array_diff'
         22        SEND_VAR                                                 !3
         23        SEND_VAR                                                 !4
         24        DO_ICALL                                         $17     
         25        COUNT                                            ~18     $17
         26      > JMPZ                                                     ~18, ->29
   11    27    >   ECHO                                                     'NO'
         28      > JMP                                                      ->30
   14    29    >   ECHO                                                     'YES'
   15    30    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.23 ms | 1401 KiB | 21 Q