3v4l.org

run code in 300+ PHP versions simultaneously
<?php $part = stristr('my home is my castle','my',true); $part2 = stristr('my home is my castle','my'); echo "This is my: $part \n"; echo "That is my: $part2 \n"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TCp2d
function name:  (null)
number of ops:  20
compiled vars:  !0 = $part, !1 = $part2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'stristr'
          1        SEND_VAL                                                 'my+home+is+my+castle'
          2        SEND_VAL                                                 'my'
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                         $2      
          5        ASSIGN                                                   !0, $2
    3     6        INIT_FCALL                                               'stristr'
          7        SEND_VAL                                                 'my+home+is+my+castle'
          8        SEND_VAL                                                 'my'
          9        DO_ICALL                                         $4      
         10        ASSIGN                                                   !1, $4
    4    11        ROPE_INIT                                     3  ~7      'This+is+my%3A+'
         12        ROPE_ADD                                      1  ~7      ~7, !0
         13        ROPE_END                                      2  ~6      ~7, '+%0A'
         14        ECHO                                                     ~6
    5    15        ROPE_INIT                                     3  ~10     'That+is+my%3A+'
         16        ROPE_ADD                                      1  ~10     ~10, !1
         17        ROPE_END                                      2  ~9      ~10, '+%0A'
         18        ECHO                                                     ~9
    6    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.48 ms | 1395 KiB | 15 Q