3v4l.org

run code in 300+ PHP versions simultaneously
<?php $agent = 'test+agent'; $agent = split('\+', $agent); echo $agent[0].PHP_EOL; echo $agent[1].PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aNpVu
function name:  (null)
number of ops:  13
compiled vars:  !0 = $agent
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'test%2Bagent'
    4     1        INIT_FCALL_BY_NAME                                       'split'
          2        SEND_VAL_EX                                              '%5C%2B'
          3        SEND_VAR_EX                                              !0
          4        DO_FCALL                                      0  $2      
          5        ASSIGN                                                   !0, $2
    5     6        FETCH_DIM_R                                      ~4      !0, 0
          7        CONCAT                                           ~5      ~4, '%0A'
          8        ECHO                                                     ~5
    6     9        FETCH_DIM_R                                      ~6      !0, 1
         10        CONCAT                                           ~7      ~6, '%0A'
         11        ECHO                                                     ~7
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.36 ms | 1384 KiB | 13 Q