3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(token_get_all("$a === null && print(123)")); var_dump(token_get_all("if($a === null){print(123);}"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5tRRg
function name:  (null)
number of ops:  18
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'token_get_all'
          2        NOP                                                      
          3        FAST_CONCAT                                      ~1      !0, '+%3D%3D%3D+null+%26%26+print%28123%29'
          4        SEND_VAL                                                 ~1
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                                 
    4     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'token_get_all'
         10        ROPE_INIT                                     3  ~5      'if%28'
         11        ROPE_ADD                                      1  ~5      ~5, !0
         12        ROPE_END                                      2  ~4      ~5, '+%3D%3D%3D+null%29%7Bprint%28123%29%3B%7D'
         13        SEND_VAL                                                 ~4
         14        DO_ICALL                                         $7      
         15        SEND_VAR                                                 $7
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.12 ms | 1386 KiB | 17 Q