3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(); $a[0] = "abc;def;ghi;"; $b = mb_strstr($a[0],';'); echo $a[0]." "; echo $b; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/e6H8o
function name:  (null)
number of ops:  14
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        DO_ICALL                                         $5      
          8        ASSIGN                                                   !1, $5
    5     9        FETCH_DIM_R                                      ~7      !0, 0
         10        CONCAT                                           ~8      ~7, '+'
         11        ECHO                                                     ~8
    6    12        ECHO                                                     !1
    7    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.82 ms | 1394 KiB | 15 Q