3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "abcdefg"; var_dump(explode("?", $string)); $string2 = "abc?efg"; $explodedString = explode("?", $string2); echo $explodedString[0];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sRbWX
function name:  (null)
number of ops:  17
compiled vars:  !0 = $string, !1 = $string2, !2 = $explodedString
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'abcdefg'
    3     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '%3F'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $4      
          6        SEND_VAR                                                 $4
          7        DO_ICALL                                                 
    5     8        ASSIGN                                                   !1, 'abc%3Fefg'
    6     9        INIT_FCALL                                               'explode'
         10        SEND_VAL                                                 '%3F'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $7      
         13        ASSIGN                                                   !2, $7
    7    14        FETCH_DIM_R                                      ~9      !2, 0
         15        ECHO                                                     ~9
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.08 ms | 1394 KiB | 17 Q