3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 123.45; $b = 1; $ans = floatval($a) / floatval($b); var_dump($ans); $postfixNum = "1"; $postfixStr = sprintf("%02d" , $postfixNum); var_dump($postfixStr); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JRdn8
function name:  (null)
number of ops:  19
compiled vars:  !0 = $a, !1 = $b, !2 = $ans, !3 = $postfixNum, !4 = $postfixStr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 123.45
    5     1        ASSIGN                                                   !1, 1
    7     2        CAST                                          5  ~7      !0
          3        CAST                                          5  ~8      !1
          4        DIV                                              ~9      ~7, ~8
          5        ASSIGN                                                   !2, ~9
    8     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !2
          8        DO_ICALL                                                 
   10     9        ASSIGN                                                   !3, '1'
   11    10        INIT_FCALL                                               'sprintf'
         11        SEND_VAL                                                 '%2502d'
         12        SEND_VAR                                                 !3
         13        DO_ICALL                                         $13     
         14        ASSIGN                                                   !4, $13
   12    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !4
         17        DO_ICALL                                                 
   19    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.78 ms | 1394 KiB | 17 Q