3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(); $a[0] = "abc;def;ghi;"; $b = mb_strstr($a[0],';',true); echo $a[0]." "; echo $b; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M7iLC
function name:  (null)
number of ops:  15
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN_DIM                                               !0, 0
          2        OP_DATA                                                  'abc%3Bdef%3Bghi%3B'
    4     3        INIT_FCALL                                               'mb_strstr'
          4        FETCH_DIM_R                                      ~4      !0, 0
          5        SEND_VAL                                                 ~4
          6        SEND_VAL                                                 '%3B'
          7        SEND_VAL                                                 <true>
          8        DO_ICALL                                         $5      
          9        ASSIGN                                                   !1, $5
    5    10        FETCH_DIM_R                                      ~7      !0, 0
         11        CONCAT                                           ~8      ~7, '+'
         12        ECHO                                                     ~8
    6    13        ECHO                                                     !1
    7    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.18 ms | 1394 KiB | 15 Q