3v4l.org

run code in 300+ PHP versions simultaneously
<?php $number = ['1,2', 1, '']; foreach ($number as $val) { echo 'val: $val is_numeric'.!!(is_numeric(number_format($val))); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 14
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 14
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/MUi7K
function name:  (null)
number of ops:  16
compiled vars:  !0 = $number, !1 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1      > FE_RESET_R                                       $3      !0, ->14
          2    > > FE_FETCH_R                                               $3, !1, ->14
    5     3    >   INIT_FCALL                                               'is_numeric'
          4        INIT_FCALL                                               'number_format'
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $4      
          7        SEND_VAR                                                 $4
          8        DO_ICALL                                         $5      
          9        BOOL_NOT                                         ~6      $5
         10        BOOL_NOT                                         ~7      ~6
         11        CONCAT                                           ~8      'val%3A+%24val+is_numeric', ~7
         12        ECHO                                                     ~8
    4    13      > JMP                                                      ->2
         14    >   FE_FREE                                                  $3
    6    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.64 ms | 1395 KiB | 17 Q