3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = 'a,b,c,d,e'; print_r(explode(',', $string, 3)); print_r(explode(',', $string, 0)); print_r(explode(',', $string, -2));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/emDh3
function name:  (null)
number of ops:  26
compiled vars:  !0 = $string
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'a%2Cb%2Cc%2Cd%2Ce'
    5     1        INIT_FCALL                                                   'print_r'
          2        INIT_FCALL                                                   'explode'
          3        SEND_VAL                                                     '%2C'
          4        SEND_VAR                                                     !0
          5        SEND_VAL                                                     3
          6        DO_ICALL                                             $2      
          7        SEND_VAR                                                     $2
          8        DO_ICALL                                                     
    6     9        INIT_FCALL                                                   'print_r'
         10        INIT_FCALL                                                   'explode'
         11        SEND_VAL                                                     '%2C'
         12        SEND_VAR                                                     !0
         13        SEND_VAL                                                     0
         14        DO_ICALL                                             $4      
         15        SEND_VAR                                                     $4
         16        DO_ICALL                                                     
    7    17        INIT_FCALL                                                   'print_r'
         18        INIT_FCALL                                                   'explode'
         19        SEND_VAL                                                     '%2C'
         20        SEND_VAR                                                     !0
         21        SEND_VAL                                                     -2
         22        DO_ICALL                                             $6      
         23        SEND_VAR                                                     $6
         24        DO_ICALL                                                     
         25      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
164.69 ms | 1397 KiB | 15 Q