3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo join('<br/>', array_map(function($x) { return sprintf('%.02f', 4+floor($x/12)+$x%12/100); }, range(0, 47)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5TVNs
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                                                 '%3Cbr%2F%3E'
          2        INIT_FCALL                                               'array_map'
          3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F5TVNs%3A3%240'
          4        SEND_VAL                                                 ~0
          5        INIT_FCALL                                               'range'
          6        SEND_VAL                                                 0
          7        SEND_VAL                                                 47
          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%2F5TVNs%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5TVNs
function name:  {closure}
number of ops:  15
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
          0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'sprintf'
          2        SEND_VAL                                                 '%25.02f'
          3        INIT_FCALL                                               'floor'
          4        DIV                                              ~1      !0, 12
          5        SEND_VAL                                                 ~1
          6        DO_ICALL                                         $2      
          7        ADD                                              ~3      4, $2
          8        MOD                                              ~4      !0, 12
          9        DIV                                              ~5      ~4, 100
         10        ADD                                              ~6      ~3, ~5
         11        SEND_VAL                                                 ~6
         12        DO_ICALL                                         $7      
         13      > RETURN                                                   $7
         14*     > RETURN                                                   null

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.53 ms | 1396 KiB | 23 Q