3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str ='"text text text "text" text"'; Var_dump(explode('"', " " .$str. " ")); $str ='text "text" text'; Var_dump(explode('"', " " .$str. " ")); $str ='"text" text text text "text"'; Var_dump(explode('"', " " .$str. " "));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sjrre
function name:  (null)
number of ops:  31
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%22text+text+text+%22text%22+text%22'
    4     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '%22'
          4        CONCAT                                           ~2      '+', !0
          5        CONCAT                                           ~3      ~2, '+'
          6        SEND_VAL                                                 ~3
          7        DO_ICALL                                         $4      
          8        SEND_VAR                                                 $4
          9        DO_ICALL                                                 
    8    10        ASSIGN                                                   !0, 'text+%22text%22+text'
    9    11        INIT_FCALL                                               'var_dump'
         12        INIT_FCALL                                               'explode'
         13        SEND_VAL                                                 '%22'
         14        CONCAT                                           ~7      '+', !0
         15        CONCAT                                           ~8      ~7, '+'
         16        SEND_VAL                                                 ~8
         17        DO_ICALL                                         $9      
         18        SEND_VAR                                                 $9
         19        DO_ICALL                                                 
   12    20        ASSIGN                                                   !0, '%22text%22+text+text+text+%22text%22'
   13    21        INIT_FCALL                                               'var_dump'
         22        INIT_FCALL                                               'explode'
         23        SEND_VAL                                                 '%22'
         24        CONCAT                                           ~12     '+', !0
         25        CONCAT                                           ~13     ~12, '+'
         26        SEND_VAL                                                 ~13
         27        DO_ICALL                                         $14     
         28        SEND_VAR                                                 $14
         29        DO_ICALL                                                 
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.59 ms | 999 KiB | 15 Q