3v4l.org

run code in 300+ PHP versions simultaneously
<?php for( $i = 3; $i > 0; call_user_func( function($i){ $ob=''; for( $j = 0; $j<$i; $ob.='Smile!', $j++ ); echo $ob."\n"; }, $i ), $i-- );
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 = 2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 2
Branch analysis from position: 9
Branch analysis from position: 2
filename:       /in/MTVXa
function name:  (null)
number of ops:  10
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 3
          1      > JMP                                                      ->7
    7     2    >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FMTVXa%3A7%240'
   11     3        INIT_USER_CALL                                1          'call_user_func', ~2
   12     4        SEND_USER                                                !0
          5        DO_FCALL                                      0          
   14     6        PRE_DEC                                                  !0
    5     7    >   IS_SMALLER                                               0, !0
          8      > JMPNZ                                                    ~5, ->2
   15     9    > > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FMTVXa%3A7%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 4
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 4
Branch analysis from position: 8
Branch analysis from position: 4
filename:       /in/MTVXa
function name:  {closure}
number of ops:  11
compiled vars:  !0 = $i, !1 = $ob, !2 = $j
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    8     1        ASSIGN                                                   !1, ''
    9     2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->6
          4    >   ASSIGN_OP                                     8          !1, 'Smile%21'
          5        PRE_INC                                                  !2
          6    >   IS_SMALLER                                               !2, !0
          7      > JMPNZ                                                    ~7, ->4
   10     8    >   CONCAT                                           ~8      !1, '%0A'
          9        ECHO                                                     ~8
   11    10      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FMTVXa%3A7%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.61 ms | 1395 KiB | 13 Q