3v4l.org

run code in 500+ PHP versions simultaneously
<?php $myString = "apple^;ball^room^mouse^bat^;cricket^news^man^"; var_export(implode(' ', preg_split('/\^[^;]*;?/', $myString, 0, PREG_SPLIT_NO_EMPTY)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VtbB5
function name:  (null)
number of ops:  12
compiled vars:  !0 = $myString
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'apple%5E%3Bball%5Eroom%5Emouse%5Ebat%5E%3Bcricket%5Enews%5Eman%5E'
    5     1        INIT_FCALL                                                   'var_export'
          2        INIT_FCALL                                                   'preg_split'
          3        SEND_VAL                                                     '%2F%5C%5E%5B%5E%3B%5D%2A%3B%3F%2F'
          4        SEND_VAR                                                     !0
          5        SEND_VAL                                                     0
          6        SEND_VAL                                                     1
          7        DO_ICALL                                             $2      
          8        FRAMELESS_ICALL_2                implode             ~3      '+', $2
          9        SEND_VAL                                                     ~3
         10        DO_ICALL                                                     
         11      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
151.97 ms | 1859 KiB | 16 Q