3v4l.org

run code in 500+ PHP versions simultaneously
<?php $amt = 33.48; echo "$amt: ".gettype($amt); $amount = $amt* 100; echo "\n$amount: ".gettype($amount); echo "\n"; $arr = array($amount); print_r($arr); echo "\n".json_encode($arr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fR9pv
function name:  (null)
number of ops:  26
compiled vars:  !0 = $amt, !1 = $amount, !2 = $arr
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 33.48
    4     1        NOP                                                          
          2        FAST_CONCAT                                          ~4      !0, '%3A+'
          3        GET_TYPE                                             ~5      !0
          4        CONCAT                                               ~6      ~4, ~5
          5        ECHO                                                         ~6
    5     6        MUL                                                  ~7      !0, 100
          7        ASSIGN                                                       !1, ~7
    6     8        ROPE_INIT                                         3  ~10     '%0A'
          9        ROPE_ADD                                          1  ~10     ~10, !1
         10        ROPE_END                                          2  ~9      ~10, '%3A+'
         11        GET_TYPE                                             ~12     !1
         12        CONCAT                                               ~13     ~9, ~12
         13        ECHO                                                         ~13
    7    14        ECHO                                                         '%0A'
    8    15        INIT_ARRAY                                           ~14     !1
         16        ASSIGN                                                       !2, ~14
    9    17        INIT_FCALL                                                   'print_r'
         18        SEND_VAR                                                     !2
         19        DO_ICALL                                                     
   10    20        INIT_FCALL                                                   'json_encode'
         21        SEND_VAR                                                     !2
         22        DO_ICALL                                             $17     
         23        CONCAT                                               ~18     '%0A', $17
         24        ECHO                                                         ~18
         25      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
163.52 ms | 3082 KiB | 15 Q