3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo str_pad(01, 2, "0", STR_PAD_LEFT); $arr=array(); array_push($arr, array(1)); array_push($arr, array(2)); echo '<pre>'; print_r($arr); echo '</pre>';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YPKBv
function name:  (null)
number of ops:  22
compiled vars:  !0 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'str_pad'
          1        SEND_VAL                                                 1
          2        SEND_VAL                                                 2
          3        SEND_VAL                                                 '0'
          4        SEND_VAL                                                 0
          5        DO_ICALL                                         $1      
          6        ECHO                                                     $1
    4     7        ASSIGN                                                   !0, <array>
    6     8        INIT_FCALL                                               'array_push'
          9        SEND_REF                                                 !0
         10        SEND_VAL                                                 <array>
         11        DO_ICALL                                                 
    7    12        INIT_FCALL                                               'array_push'
         13        SEND_REF                                                 !0
         14        SEND_VAL                                                 <array>
         15        DO_ICALL                                                 
    9    16        ECHO                                                     '%3Cpre%3E'
   10    17        INIT_FCALL                                               'print_r'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                                 
   11    20        ECHO                                                     '%3C%2Fpre%3E'
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.2 ms | 1395 KiB | 19 Q