3v4l.org

run code in 300+ PHP versions simultaneously
<?php highlight_string("<?php echo 'test'; foreach ($foo as $bar) { if ($bar === true) { echo 'true'; } } ");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jElsA
function name:  (null)
number of ops:  11
compiled vars:  !0 = $foo, !1 = $bar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'highlight_string'
          1        ROPE_INIT                                     7  ~3      '%3C%3Fphp%0A%09echo+%27test%27%3B%0Aforeach+%28'
    5     2        ROPE_ADD                                      1  ~3      ~3, !0
          3        ROPE_ADD                                      2  ~3      ~3, '+as+'
          4        ROPE_ADD                                      3  ~3      ~3, !1
          5        ROPE_ADD                                      4  ~3      ~3, '%29+%7B%0Aif+%28'
    6     6        ROPE_ADD                                      5  ~3      ~3, !1
          7        ROPE_END                                      6  ~2      ~3, '+%3D%3D%3D+true%29+%7B%0Aecho+%27true%27%3B%0A%7D%0A%7D%0A'
          8        SEND_VAL                                                 ~2
          9        DO_ICALL                                                 
   10    10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.81 ms | 1398 KiB | 15 Q