3v4l.org

run code in 300+ PHP versions simultaneously
<?php function xrange($from, $to) { for ($i = $from; $i <= $to; $i++) { yield $i; } } $range = range(ord('a'), ord('z'));?> <table><?= implode("\n", array_map(function($i) {return sprintf('<tr><td>%s</td></tr>', chr($i));}, $range)); ?></table>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WNLd4
function name:  (null)
number of ops:  18
compiled vars:  !0 = $range
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 97
          2        SEND_VAL                                                 122
          3        DO_ICALL                                         $1      
          4        ASSIGN                                                   !0, $1
    7     5        ECHO                                                     '%3Ctable%3E'
          6        INIT_FCALL                                               'implode'
          7        SEND_VAL                                                 '%0A'
          8        INIT_FCALL                                               'array_map'
          9        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FWNLd4%3A7%240'
         10        SEND_VAL                                                 ~3
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $4      
         13        SEND_VAR                                                 $4
         14        DO_ICALL                                         $5      
         15        ECHO                                                     $5
         16        ECHO                                                     '%3C%2Ftable%3E'
         17      > RETURN                                                   1

Function xrange:
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 = 161) 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/WNLd4
function name:  xrange
number of ops:  10
compiled vars:  !0 = $from, !1 = $to, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        GENERATOR_CREATE                                         
    2     3        ASSIGN                                                   !2, !0
          4      > JMP                                                      ->7
    3     5    >   YIELD                                                    !2
    2     6        PRE_INC                                                  !2
          7    >   IS_SMALLER_OR_EQUAL                                      !2, !1
          8      > JMPNZ                                                    ~6, ->5
    5     9    > > GENERATOR_RETURN                                         

End of function xrange

Function %00%7Bclosure%7D%2Fin%2FWNLd4%3A7%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WNLd4
function name:  {closure}
number of ops:  10
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'sprintf'
          2        SEND_VAL                                                 '%3Ctr%3E%3Ctd%3E%25s%3C%2Ftd%3E%3C%2Ftr%3E'
          3        INIT_FCALL                                               'chr'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $1      
          6        SEND_VAR                                                 $1
          7        DO_ICALL                                         $2      
          8      > RETURN                                                   $2
          9*     > RETURN                                                   null

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.99 ms | 1392 KiB | 23 Q