3v4l.org

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

Function %00%7Bclosure%7D%2Fin%2FS1mh4%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/S1mh4
function name:  {closure}
number of ops:  13
compiled vars:  !0 = $no, !1 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'str_pad'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 2
          4        SEND_VAL                                                 '0'
          5        SEND_VAL                                                 0
          6        DO_ICALL                                         $2      
          7        ASSIGN                                                   !1, $2
    6     8        ROPE_INIT                                     3  ~5      '%3Cth%3E'
          9        ROPE_ADD                                      1  ~5      ~5, !1
         10        ROPE_END                                      2  ~4      ~5, '%3C%2Fth%3E'
         11      > RETURN                                                   ~4
    7    12*     > RETURN                                                   null

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.86 ms | 1395 KiB | 21 Q