3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.36 ms | 1398 KiB | 17 Q