3v4l.org

run code in 300+ PHP versions simultaneously
<?php function xrange($from, $to) { for ($i = $from; $i <= $to; $i++) { yield $i; } } $range = array_merge(range(ord('a'), ord('z')),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/Lkh3k
function name:  (null)
number of ops:  26
compiled vars:  !0 = $range
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'array_merge'
          1        INIT_FCALL                                               'range'
          2        SEND_VAL                                                 97
          3        SEND_VAL                                                 122
          4        DO_ICALL                                         $1      
          5        SEND_VAR                                                 $1
          6        INIT_FCALL                                               'range'
          7        SEND_VAL                                                 65
          8        SEND_VAL                                                 90
          9        DO_ICALL                                         $2      
         10        SEND_VAR                                                 $2
         11        DO_ICALL                                         $3      
         12        ASSIGN                                                   !0, $3
    7    13        ECHO                                                     '%3Ctable%3E'
         14        INIT_FCALL                                               'implode'
         15        SEND_VAL                                                 '%0A'
         16        INIT_FCALL                                               'array_map'
         17        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FLkh3k%3A7%240'
         18        SEND_VAL                                                 ~5
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                         $6      
         21        SEND_VAR                                                 $6
         22        DO_ICALL                                         $7      
         23        ECHO                                                     $7
         24        ECHO                                                     '%3C%2Ftable%3E'
         25      > 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/Lkh3k
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%2FLkh3k%3A7%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Lkh3k
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%2FLkh3k%3A7%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.04 ms | 1400 KiB | 25 Q