3v4l.org

run code in 300+ PHP versions simultaneously
<?php $scores = array('110.00', '67%'); foreach ($scores as $score) print_r(array('score' => $score, 'is_numeric' => is_numeric($score), 'is_float' => is_float($score), 'floatval' => floatval($score)));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 16
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 16
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/a4VKE
function name:  (null)
number of ops:  18
compiled vars:  !0 = $scores, !1 = $score
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1      > FE_RESET_R                                       $3      !0, ->16
          2    > > FE_FETCH_R                                               $3, !1, ->16
    5     3    >   INIT_FCALL                                               'print_r'
          4        INIT_ARRAY                                       ~4      !1, 'score'
          5        INIT_FCALL                                               'is_numeric'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $5      
          8        ADD_ARRAY_ELEMENT                                ~4      $5, 'is_numeric'
          9        TYPE_CHECK                                   32  ~6      !1
         10        ADD_ARRAY_ELEMENT                                ~4      ~6, 'is_float'
         11        CAST                                          5  ~7      !1
         12        ADD_ARRAY_ELEMENT                                ~4      ~7, 'floatval'
         13        SEND_VAL                                                 ~4
         14        DO_ICALL                                                 
    4    15      > JMP                                                      ->2
         16    >   FE_FREE                                                  $3
    5    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.03 ms | 1395 KiB | 17 Q