3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a1 = range(1,25); $a2 = range(1,25); $r = array_map('compare', $a1, $a2); function compare($v1, $v2) { echo $v1.'--'.$v2; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8tUNq
function name:  (null)
number of ops:  17
compiled vars:  !0 = $a1, !1 = $a2, !2 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 1
          2        SEND_VAL                                                 25
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
    4     5        INIT_FCALL                                               'range'
          6        SEND_VAL                                                 1
          7        SEND_VAL                                                 25
          8        DO_ICALL                                         $5      
          9        ASSIGN                                                   !1, $5
    6    10        INIT_FCALL                                               'array_map'
         11        SEND_VAL                                                 'compare'
         12        SEND_VAR                                                 !0
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                         $7      
         15        ASSIGN                                                   !2, $7
   12    16      > RETURN                                                   1

Function compare:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8tUNq
function name:  compare
number of ops:  6
compiled vars:  !0 = $v1, !1 = $v2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   11     2        CONCAT                                           ~2      !0, '--'
          3        CONCAT                                           ~3      ~2, !1
          4        ECHO                                                     ~3
   12     5      > RETURN                                                   null

End of function compare

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.44 ms | 1400 KiB | 17 Q