3v4l.org

run code in 300+ 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:  15
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                                               'implode'
          3        SEND_VAL                                                 '+'
          4        INIT_FCALL                                               'preg_split'
          5        SEND_VAL                                                 '%2F%5C%5E%5B%5E%3B%5D%2A%3B%3F%2F'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 0
          8        SEND_VAL                                                 1
          9        DO_ICALL                                         $2      
         10        SEND_VAR                                                 $2
         11        DO_ICALL                                         $3      
         12        SEND_VAR                                                 $3
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.18 ms | 1006 KiB | 16 Q