3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [ is_numeric('0e1'), is_numeric('1e1'), is_numeric('0x1'), is_numeric('0'), ]; foreach ($a as $i): var_dump($i); endforeach;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 18, Position 2 = 23
Branch analysis from position: 18
2 jumps found. (Code = 78) Position 1 = 19, Position 2 = 23
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/OgCro
function name:  (null)
number of ops:  25
compiled vars:  !0 = $a, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'is_numeric'
          1        SEND_VAL                                                 '0e1'
          2        DO_ICALL                                         $2      
          3        INIT_ARRAY                                       ~3      $2
    4     4        INIT_FCALL                                               'is_numeric'
          5        SEND_VAL                                                 '1e1'
          6        DO_ICALL                                         $4      
          7        ADD_ARRAY_ELEMENT                                ~3      $4
    5     8        INIT_FCALL                                               'is_numeric'
          9        SEND_VAL                                                 '0x1'
         10        DO_ICALL                                         $5      
         11        ADD_ARRAY_ELEMENT                                ~3      $5
    6    12        INIT_FCALL                                               'is_numeric'
         13        SEND_VAL                                                 '0'
         14        DO_ICALL                                         $6      
         15        ADD_ARRAY_ELEMENT                                ~3      $6
    2    16        ASSIGN                                                   !0, ~3
    8    17      > FE_RESET_R                                       $8      !0, ->23
         18    > > FE_FETCH_R                                               $8, !1, ->23
    9    19    >   INIT_FCALL                                               'var_dump'
         20        SEND_VAR                                                 !1
         21        DO_ICALL                                                 
    8    22      > JMP                                                      ->18
         23    >   FE_FREE                                                  $8
   10    24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.37 ms | 1395 KiB | 17 Q