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); $words[0] = 'apple'; $words[1] = 'apple'; echo $words[0] === $words[1];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uqpmi
function name:  (null)
number of ops:  28
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
    6    19        ASSIGN_DIM                                               !1, 0
         20        OP_DATA                                                  'apple'
    7    21        ASSIGN_DIM                                               !1, 1
         22        OP_DATA                                                  'apple'
    8    23        FETCH_DIM_R                                      ~12     !1, 0
         24        FETCH_DIM_R                                      ~13     !1, 1
         25        IS_IDENTICAL                                     ~14     ~12, ~13
         26        ECHO                                                     ~14
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.23 ms | 1395 KiB | 21 Q