3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
201.39 ms | 1399 KiB | 17 Q