3v4l.org

run code in 300+ PHP versions simultaneously
<?php // $output = array_slice(array_merge(explode(' | ', $input), array(null)), 0, 2); $input = 'Hello | does | this | work'; $output = explode(" | ", "$input | ", 2); print_r($output);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/E1C1T
function name:  (null)
number of ops:  13
compiled vars:  !0 = $input, !1 = $output
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                   !0, 'Hello+%7C+does+%7C+this+%7C+work'
    7     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '+%7C+'
          3        NOP                                                      
          4        FAST_CONCAT                                      ~3      !0, '+%7C+'
          5        SEND_VAL                                                 ~3
          6        SEND_VAL                                                 2
          7        DO_ICALL                                         $4      
          8        ASSIGN                                                   !1, $4
    9     9        INIT_FCALL                                               'print_r'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.32 ms | 1394 KiB | 17 Q