3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = <<<STRING what is "this <? echo str_replace(':'," '', 'cool'); STRING; foreach (array_column(token_get_all($string), 1) as $token) { echo $token, PHP_EOL; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 13
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/CffGq
function name:  (null)
number of ops:  15
compiled vars:  !0 = $string, !1 = $token
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'what+is+%22this+%3C%3F+echo+str_replace%28%27%3A%27%2C%22+%27%27%2C+%27cool%27%29%3B'
    7     1        INIT_FCALL                                               'array_column'
          2        INIT_FCALL                                               'token_get_all'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        SEND_VAR                                                 $3
          6        SEND_VAL                                                 1
          7        DO_ICALL                                         $4      
          8      > FE_RESET_R                                       $5      $4, ->13
          9    > > FE_FETCH_R                                               $5, !1, ->13
    8    10    >   ECHO                                                     !1
         11        ECHO                                                     '%0A'
    7    12      > JMP                                                      ->9
         13    >   FE_FREE                                                  $5
    9    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.8 ms | 1394 KiB | 17 Q