3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.67 ms | 1396 KiB | 17 Q