3v4l.org

run code in 300+ 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:  9
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        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%5C%29+%2A%5Cn%28%3F%3D%5Cn%7B%29%2F'
          3        SEND_VAL                                                 '%29'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
   23     7        ECHO                                                     !0
   24     8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.99 ms | 942 KiB | 14 Q