3v4l.org

run code in 500+ PHP versions simultaneously
<?php $text = <<<EOT if (1 == 1) { echo 'test'; } while (blah = blah) { echo 'blah'; } EOT; $text = preg_replace('/\) *\n(?=\n{)/', ")", $text); echo $text;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/prmUv
function name:  (null)
number of ops:  6
compiled vars:  !0 = $text
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'if+%281+%3D%3D+1%29%0A%0A%7B%0A%0A+++++echo+%27test%27%3B%0A%0A%7D%0A%0Awhile+%28blah+%3D+blah%29%0A%0A%7B%0A%0A+++++echo+%27blah%27%3B%0A%0A%7D'
   21     1        FRAMELESS_ICALL_3                preg_replace        ~2      '%2F%5C%29+%2A%5Cn%28%3F%3D%5Cn%7B%29%2F', '%29'
          2        OP_DATA                                                      !0
          3        ASSIGN                                                       !0, ~2
   23     4        ECHO                                                         !0
   24     5      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
145.34 ms | 1588 KiB | 13 Q