3v4l.org

run code in 500+ PHP versions simultaneously
<?php //Makes sense print_r(explode(" ", "1 2 3")); //Probably should be empty array but array("2") sort of makes sense, in a weird way. print_r(explode(" ", "2")); //Surely should just be empty array? print_r(explode(" ", "")); //This returns FALSE because delimiter is ""... print_r(explode("", "123") === FALSE);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eKMav
function name:  (null)
number of ops:  30
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                                   'print_r'
          1        INIT_FCALL                                                   'explode'
          2        SEND_VAL                                                     '+'
          3        SEND_VAL                                                     '1+2+3'
          4        DO_ICALL                                             $0      
          5        SEND_VAR                                                     $0
          6        DO_ICALL                                                     
    7     7        INIT_FCALL                                                   'print_r'
          8        INIT_FCALL                                                   'explode'
          9        SEND_VAL                                                     '+'
         10        SEND_VAL                                                     '2'
         11        DO_ICALL                                             $2      
         12        SEND_VAR                                                     $2
         13        DO_ICALL                                                     
   10    14        INIT_FCALL                                                   'print_r'
         15        INIT_FCALL                                                   'explode'
         16        SEND_VAL                                                     '+'
         17        SEND_VAL                                                     ''
         18        DO_ICALL                                             $4      
         19        SEND_VAR                                                     $4
         20        DO_ICALL                                                     
   13    21        INIT_FCALL                                                   'print_r'
         22        INIT_FCALL                                                   'explode'
         23        SEND_VAL                                                     ''
         24        SEND_VAL                                                     '123'
         25        DO_ICALL                                             $6      
         26        TYPE_CHECK                                        4  ~7      $6
         27        SEND_VAL                                                     ~7
         28        DO_ICALL                                                     
         29      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
174.06 ms | 2985 KiB | 15 Q