3v4l.org

run code in 300+ PHP versions simultaneously
<?php $values = array( 'one', 'two', 'three', ); for ($i = 1; $i <= 100000; $i++) { $values_new = array_map(function($item) { return $item; },$values); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 3
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 3
Branch analysis from position: 12
Branch analysis from position: 3
filename:       /in/3p3iH
function name:  (null)
number of ops:  13
compiled vars:  !0 = $values, !1 = $i, !2 = $values_new
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1        ASSIGN                                                   !1, 1
          2      > JMP                                                      ->10
   10     3    >   INIT_FCALL                                               'array_map'
          4        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F3p3iH%3A10%240'
   12     5        SEND_VAL                                                 ~5
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $6      
   10     8        ASSIGN                                                   !2, $6
    9     9        PRE_INC                                                  !1
         10    >   IS_SMALLER_OR_EQUAL                                      !1, 100000
         11      > JMPNZ                                                    ~9, ->3
   13    12    > > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F3p3iH%3A10%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3p3iH
function name:  {closure}
number of ops:  3
compiled vars:  !0 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
   11     1      > RETURN                                                   !0
   12     2*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F3p3iH%3A10%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.45 ms | 1395 KiB | 15 Q