3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input_str = trim(fgets(STDIN)); $input_str = str_replace(array("\r\n", "\n", "\r"), "", $input_str); $words = explode(" ", $input_str); echo $words[0] === $words[1];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nnYNC
function name:  (null)
number of ops:  24
compiled vars:  !0 = $input_str, !1 = $words
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'trim'
          1        INIT_FCALL                                               'fgets'
          2        FETCH_CONSTANT                                   ~2      'STDIN'
          3        SEND_VAL                                                 ~2
          4        DO_ICALL                                         $3      
          5        SEND_VAR                                                 $3
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !0, $4
    3     8        INIT_FCALL                                               'str_replace'
          9        SEND_VAL                                                 <array>
         10        SEND_VAL                                                 ''
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $6      
         13        ASSIGN                                                   !0, $6
    5    14        INIT_FCALL                                               'explode'
         15        SEND_VAL                                                 '+'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                         $8      
         18        ASSIGN                                                   !1, $8
    7    19        FETCH_DIM_R                                      ~10     !1, 0
         20        FETCH_DIM_R                                      ~11     !1, 1
         21        IS_IDENTICAL                                     ~12     ~10, ~11
         22        ECHO                                                     ~12
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.67 ms | 1395 KiB | 21 Q