3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t = token_get_all('<?php $result = $perf_id == "chris" && $date < strtotime("5th July");'); foreach($t as $i=>$k)if(is_array($t[$i]) && is_int($t[$i][0]))$t[$i][0] = token_name($k[0]); print_r($t);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 23
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 23
Branch analysis from position: 6
2 jumps found. (Code = 46) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 22
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 22
Branch analysis from position: 14
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/nXv2a
function name:  (null)
number of ops:  28
compiled vars:  !0 = $t, !1 = $k, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'token_get_all'
          1        SEND_VAL                                                 '%3C%3Fphp+%24result+%3D+%24perf_id+%3D%3D+%22chris%22+%26%26+%24date+%3C+strtotime%28%225th+July%22%29%3B'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    3     4      > FE_RESET_R                                       $5      !0, ->23
          5    > > FE_FETCH_R                                       ~6      $5, !1, ->23
          6    >   ASSIGN                                                   !2, ~6
          7        FETCH_DIM_R                                      ~8      !0, !2
          8        TYPE_CHECK                                  128  ~9      ~8
          9      > JMPZ_EX                                          ~9      ~9, ->14
         10    >   FETCH_DIM_R                                      ~10     !0, !2
         11        FETCH_DIM_R                                      ~11     ~10, 0
         12        TYPE_CHECK                                   16  ~12     ~11
         13        BOOL                                             ~9      ~12
         14    > > JMPZ                                                     ~9, ->22
         15    >   INIT_FCALL                                               'token_name'
         16        FETCH_DIM_R                                      ~15     !1, 0
         17        SEND_VAL                                                 ~15
         18        DO_ICALL                                         $16     
         19        FETCH_DIM_W                                      $13     !0, !2
         20        ASSIGN_DIM                                               $13, 0
         21        OP_DATA                                                  $16
         22    > > JMP                                                      ->5
         23    >   FE_FREE                                                  $5
    4    24        INIT_FCALL                                               'print_r'
         25        SEND_VAR                                                 !0
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.26 ms | 1396 KiB | 19 Q