3v4l.org

run code in 300+ PHP versions simultaneously
<?php function fоr( $f, $o, $r ) { for ( $i=$f; $i < $o; $i += $r ) echo "😐"; } fоr( $f=0, $f < 1, ++$f);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZZ5V2
function name:  (null)
number of ops:  9
compiled vars:  !0 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'f%D0%BEr'
          1        ASSIGN                                           ~1      !0, 0
          2        SEND_VAL                                                 ~1
          3        IS_SMALLER                                       ~2      !0, 1
          4        SEND_VAL                                                 ~2
          5        PRE_INC                                          ~3      !0
          6        SEND_VAL                                                 ~3
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

Function f%D0%BEr:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 5
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 5
Branch analysis from position: 9
Branch analysis from position: 5
filename:       /in/ZZ5V2
function name:  fоr
number of ops:  10
compiled vars:  !0 = $f, !1 = $o, !2 = $r, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
    4     3        ASSIGN                                                   !3, !0
          4      > JMP                                                      ->7
    5     5    >   ECHO                                                     '%F0%9F%98%90'
    4     6        ASSIGN_OP                                     1          !3, !2
          7    >   IS_SMALLER                                               !3, !1
          8      > JMPNZ                                                    ~6, ->5
    6     9    > > RETURN                                                   null

End of function f%D0%BEr

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.36 ms | 1398 KiB | 14 Q