3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = []; for($i = 0; $i < 10; $i) { $a[] = $i; } $arr = array_map($a, function($x) {return $x*$x;}); return;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 7, Position 2 = 3
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 7, Position 2 = 3
Branch analysis from position: 7
Branch analysis from position: 3
filename:       /in/94KQB
function name:  (null)
number of ops:  15
compiled vars:  !0 = $a, !1 = $i, !2 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->5
    5     3    >   ASSIGN_DIM                                               !0
          4        OP_DATA                                                  !1
    4     5    >   IS_SMALLER                                               !1, 10
          6      > JMPNZ                                                    ~6, ->3
    7     7    >   INIT_FCALL                                               'array_map'
          8        SEND_VAR                                                 !0
          9        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F94KQB%3A7%240'
         10        SEND_VAL                                                 ~7
         11        DO_ICALL                                         $8      
         12        ASSIGN                                                   !2, $8
   10    13      > RETURN                                                   null
         14*     > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F94KQB%3A7%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/94KQB
function name:  {closure}
number of ops:  4
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
          1        MUL                                              ~1      !0, !0
          2      > RETURN                                                   ~1
          3*     > RETURN                                                   null

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.13 ms | 1387 KiB | 15 Q