3v4l.org

run code in 300+ PHP versions simultaneously
<?php $FOO = "this is a test"; $str = ereg_replace("\s", " \/ ", trim($FOO)); echo $str;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/73vcY
function name:  (null)
number of ops:  12
compiled vars:  !0 = $FOO, !1 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'this+is+a+test'
    3     1        INIT_FCALL_BY_NAME                                       'ereg_replace'
          2        SEND_VAL_EX                                              '%5Cs'
          3        SEND_VAL_EX                                              '+%5C%2F+'
          4        INIT_FCALL                                               'trim'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $3      
          7        SEND_VAR_NO_REF_EX                                       $3
          8        DO_FCALL                                      0  $4      
          9        ASSIGN                                                   !1, $4
    4    10        ECHO                                                     !1
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.47 ms | 1385 KiB | 15 Q