3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = 'foo o a a'; $str = preg_replace('/\s+/', '', $str); // This will be 'foo o' now echo $str;
based on 1FfGH
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/19HIs
function name:  (null)
number of ops:  9
compiled vars:  !0 = $str
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   ASSIGN                                                   !0, 'foo+++o++a++a'
   4     1        INIT_FCALL                                               'preg_replace'
         2        SEND_VAL                                                 '%2F%5Cs%2B%2F'
         3        SEND_VAL                                                 ''
         4        SEND_VAR                                                 !0
         5        DO_ICALL                                         $2      
         6        ASSIGN                                                   !0, $2
   6     7        ECHO                                                     !0
         8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0