3v4l.org

run code in 500+ PHP versions simultaneously
<?php $test['amount'] = 2.7964*10000; print_r($test); var_dump($test); echo json_encode($test);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LeB6W
function name:  (null)
number of ops:  13
compiled vars:  !0 = $test
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN_DIM                                                   !0, 'amount'
          1        OP_DATA                                                      27964
    4     2        INIT_FCALL                                                   'print_r'
          3        SEND_VAR                                                     !0
          4        DO_ICALL                                                     
    5     5        INIT_FCALL                                                   'var_dump'
          6        SEND_VAR                                                     !0
          7        DO_ICALL                                                     
    6     8        INIT_FCALL                                                   'json_encode'
          9        SEND_VAR                                                     !0
         10        DO_ICALL                                             $4      
         11        ECHO                                                         $4
         12      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
128.73 ms | 478 KiB | 10 Q