3v4l.org

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

Function checksomething:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ToJV7
function name:  checkSomething
number of ops:  11
compiled vars:  !0 = $number, !1 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        DIV                                              ~2      !0, 10
          2        CAST                                          4  ~3      ~2
          3        ADD                                              ~4      ~3, 1
          4        ASSIGN                                                   !1, ~4
    7     5        ROPE_INIT                                     4  ~7      !0
          6        ROPE_ADD                                      1  ~7      ~7, '+-+'
          7        ROPE_ADD                                      2  ~7      ~7, !1
          8        ROPE_END                                      3  ~6      ~7, '+dziesiatka'
          9      > RETURN                                                   ~6
    8    10*     > RETURN                                                   null

End of function checksomething

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.44 ms | 1396 KiB | 21 Q