3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str1 = 'Apple\'s OS and the "Microsoft OS", ----- any text with quotes & symbols ---- '; $str2 = 'Sony\'s Laptop and the "Toshiba\'s"'; $string = "".$str1.",".$str2.""; $result = explode(',',$string); print_r($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iEsDH
function name:  (null)
number of ops:  16
compiled vars:  !0 = $str1, !1 = $str2, !2 = $string, !3 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Apple%27s+OS+and+the+%22Microsoft+OS%22%2C+-----+any+text+with+quotes+%26+symbols+----+'
    3     1        ASSIGN                                                   !1, 'Sony%27s+Laptop+and+the+%22Toshiba%27s%22'
    4     2        CONCAT                                           ~6      '', !0
          3        CONCAT                                           ~7      ~6, '%2C'
          4        CONCAT                                           ~8      ~7, !1
          5        CONCAT                                           ~9      ~8, ''
          6        ASSIGN                                                   !2, ~9
    5     7        INIT_FCALL                                               'explode'
          8        SEND_VAL                                                 '%2C'
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                         $11     
         11        ASSIGN                                                   !3, $11
    6    12        INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !3
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.33 ms | 1002 KiB | 15 Q