3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'one|two|three|four|eeee|tttt|gggg'; // positive limit print_r(explode('|', $str, 4)); // negative limit (since PHP 5.1) print_r(explode('|', $str, -2));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PHZZs
function name:  (null)
number of ops:  18
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'one%7Ctwo%7Cthree%7Cfour%7Ceeee%7Ctttt%7Cgggg'
    6     1        INIT_FCALL                                               'print_r'
          2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '%7C'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 4
          6        DO_ICALL                                         $2      
          7        SEND_VAR                                                 $2
          8        DO_ICALL                                                 
    9     9        INIT_FCALL                                               'print_r'
         10        INIT_FCALL                                               'explode'
         11        SEND_VAL                                                 '%7C'
         12        SEND_VAR                                                 !0
         13        SEND_VAL                                                 -2
         14        DO_ICALL                                         $4      
         15        SEND_VAR                                                 $4
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.83 ms | 1394 KiB | 17 Q