3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo join(', ', array_map(function($x) { return $x.'['.($x%3-$x%5).']'; }, range(1, 100)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Rlodt
function name:  (null)
number of ops:  15
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'join'
          1        SEND_VAL                                                 '%2C+'
          2        INIT_FCALL                                               'array_map'
          3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FRlodt%3A3%240'
    6     4        SEND_VAL                                                 ~0
          5        INIT_FCALL                                               'range'
          6        SEND_VAL                                                 1
          7        SEND_VAL                                                 100
          8        DO_ICALL                                         $1      
          9        SEND_VAR                                                 $1
         10        DO_ICALL                                         $2      
         11        SEND_VAR                                                 $2
         12        DO_ICALL                                         $3      
         13        ECHO                                                     $3
         14      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FRlodt%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Rlodt
function name:  {closure}
number of ops:  9
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        CONCAT                                           ~1      !0, '%5B'
          2        MOD                                              ~2      !0, 3
          3        MOD                                              ~3      !0, 5
          4        SUB                                              ~4      ~2, ~3
          5        CONCAT                                           ~5      ~1, ~4
          6        CONCAT                                           ~6      ~5, '%5D'
          7      > RETURN                                                   ~6
    6     8*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FRlodt%3A3%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.9 ms | 1395 KiB | 19 Q