3v4l.org

run code in 300+ PHP versions simultaneously
<?php $num = 3; list($num, $dec) = array_pad(explode(".", $num)); echo "$num, $dec";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GBqRs
function name:  (null)
number of ops:  18
compiled vars:  !0 = $num, !1 = $dec
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 3
    3     1        INIT_FCALL                                               'array_pad'
          2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '.'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        SEND_VAR                                                 $3
          7        DO_ICALL                                         $4      
          8        FETCH_LIST_R                                     $5      $4, 0
          9        ASSIGN                                                   !0, $5
         10        FETCH_LIST_R                                     $7      $4, 1
         11        ASSIGN                                                   !1, $7
         12        FREE                                                     $4
    5    13        ROPE_INIT                                     3  ~10     !0
         14        ROPE_ADD                                      1  ~10     ~10, '%2C+'
         15        ROPE_END                                      2  ~9      ~10, !1
         16        ECHO                                                     ~9
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.91 ms | 1394 KiB | 17 Q