3v4l.org

run code in 300+ PHP versions simultaneously
<?php $c = 122.13 + 0.02; echo $c; echo "\n"; echo json_encode($c); echo "\n"; echo json_encode(105.15);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eEOpJ
function name:  (null)
number of ops:  13
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 122.15
    4     1        ECHO                                                     !0
    5     2        ECHO                                                     '%0A'
    6     3        INIT_FCALL                                               'json_encode'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ECHO                                                     $2
    7     7        ECHO                                                     '%0A'
    8     8        INIT_FCALL                                               'json_encode'
          9        SEND_VAL                                                 105.15
         10        DO_ICALL                                         $3      
         11        ECHO                                                     $3
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.12 ms | 1394 KiB | 15 Q