3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'eins|zwei|drei|vier'; // positiver Wert in "limit" print_r(explode('|', $str, 2)); // negative Wert in "limit" (ab PHP 5.1) print_r(explode('|', $str, -1));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UYJil
function name:  (null)
number of ops:  18
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'eins%7Czwei%7Cdrei%7Cvier'
    5     1        INIT_FCALL                                               'print_r'
          2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '%7C'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 2
          6        DO_ICALL                                         $2      
          7        SEND_VAR                                                 $2
          8        DO_ICALL                                                 
    8     9        INIT_FCALL                                               'print_r'
         10        INIT_FCALL                                               'explode'
         11        SEND_VAL                                                 '%7C'
         12        SEND_VAR                                                 !0
         13        SEND_VAL                                                 -1
         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:
156 ms | 1394 KiB | 17 Q