3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = '1.23456789012345678'; $b = 111111111111111111.9; var_dump('Length : ' . strlen($a), (float) $a, $a == (float) $a, $b, 'Missing 8 ' . json_encode(array($a), JSON_NUMERIC_CHECK));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LlIqF
function name:  (null)
number of ops:  21
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '1.23456789012345678'
    4     1        ASSIGN                                                   !1, 1.11111e+17
    6     2        INIT_FCALL                                               'var_dump'
          3        STRLEN                                           ~4      !0
          4        CONCAT                                           ~5      'Length+%3A+', ~4
          5        SEND_VAL                                                 ~5
          6        CAST                                          5  ~6      !0
          7        SEND_VAL                                                 ~6
          8        CAST                                          5  ~7      !0
          9        IS_EQUAL                                         ~8      !0, ~7
         10        SEND_VAL                                                 ~8
         11        SEND_VAR                                                 !1
         12        INIT_FCALL                                               'json_encode'
         13        INIT_ARRAY                                       ~9      !0
         14        SEND_VAL                                                 ~9
         15        SEND_VAL                                                 32
         16        DO_ICALL                                         $10     
         17        CONCAT                                           ~11     'Missing+8+', $10
         18        SEND_VAL                                                 ~11
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
189.15 ms | 1395 KiB | 17 Q