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/lhC93
function name:  (null)
number of ops:  21
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        CAST                                          6  ~4      !0
          7        SEND_VAL                                                 ~4
          8        DO_ICALL                                                 
    7     9        INIT_FCALL                                               'substr'
         10        INIT_FCALL                                               'strrchr'
         11        CAST                                          6  ~6      !0
         12        SEND_VAL                                                 ~6
         13        SEND_VAL                                                 '.'
         14        DO_ICALL                                         $7      
         15        SEND_VAR                                                 $7
         16        SEND_VAL                                                 1
         17        DO_ICALL                                         $8      
         18        STRLEN                                           ~9      $8
         19        ECHO                                                     ~9
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.07 ms | 942 KiB | 20 Q