3v4l.org

run code in 300+ PHP versions simultaneously
<?php $thing = 'Tom Dallaway'; $one = strstr($thing, ' '); $two = strstr($thing, ' ', true); echo $one;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IgV6L
function name:  (null)
number of ops:  14
compiled vars:  !0 = $thing, !1 = $one, !2 = $two
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Tom+Dallaway'
    5     1        INIT_FCALL                                               'strstr'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '+'
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    6     6        INIT_FCALL                                               'strstr'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 '+'
          9        SEND_VAL                                                 <true>
         10        DO_ICALL                                         $6      
         11        ASSIGN                                                   !2, $6
    8    12        ECHO                                                     !1
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.56 ms | 1394 KiB | 15 Q