3v4l.org

run code in 300+ PHP versions simultaneously
<?php $number = 1.00; var_dump($number === 1); var_dump((string) ($number . ' ')); print strlen(substr(strrchr((string) $number, '.'), 1));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qVHTg
function name:  (null)
number of ops:  22
compiled vars:  !0 = $number
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 1
    4     1        INIT_FCALL                                               'var_dump'
          2        IS_IDENTICAL                                     ~2      !0, 1
          3        SEND_VAL                                                 ~2
          4        DO_ICALL                                                 
    5     5        INIT_FCALL                                               'var_dump'
          6        CONCAT                                           ~4      !0, '+'
          7        CAST                                          6  ~5      ~4
          8        SEND_VAL                                                 ~5
          9        DO_ICALL                                                 
    7    10        INIT_FCALL                                               'substr'
         11        INIT_FCALL                                               'strrchr'
         12        CAST                                          6  ~7      !0
         13        SEND_VAL                                                 ~7
         14        SEND_VAL                                                 '.'
         15        DO_ICALL                                         $8      
         16        SEND_VAR                                                 $8
         17        SEND_VAL                                                 1
         18        DO_ICALL                                         $9      
         19        STRLEN                                           ~10     $9
         20        ECHO                                                     ~10
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.62 ms | 1395 KiB | 19 Q