3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj = new Stdclass(); $tests = array( "42", 1337, 0x539, 02471, 0b10100111001, 1337e0, "not numeric", array(), 9.1 ); foreach ($tests as $element) { if (is_numeric($element)) { echo "'{$element}' is numeric", PHP_EOL; } else { echo "'{$element}' is NOT numeric", PHP_EOL; } } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 22
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 22
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 16
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
filename:       /in/iacc5
function name:  (null)
number of ops:  24
compiled vars:  !0 = $obj, !1 = $tests, !2 = $element
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'Stdclass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    5     3        ASSIGN                                                   !1, <array>
   19     4      > FE_RESET_R                                       $7      !1, ->22
          5    > > FE_FETCH_R                                               $7, !2, ->22
   20     6    >   INIT_FCALL                                               'is_numeric'
          7        SEND_VAR                                                 !2
          8        DO_ICALL                                         $8      
          9      > JMPZ                                                     $8, ->16
   21    10    >   ROPE_INIT                                     3  ~10     '%27'
         11        ROPE_ADD                                      1  ~10     ~10, !2
         12        ROPE_END                                      2  ~9      ~10, '%27+is+numeric'
         13        ECHO                                                     ~9
         14        ECHO                                                     '%0A'
         15      > JMP                                                      ->21
   23    16    >   ROPE_INIT                                     3  ~13     '%27'
         17        ROPE_ADD                                      1  ~13     ~13, !2
         18        ROPE_END                                      2  ~12     ~13, '%27+is+NOT+numeric'
         19        ECHO                                                     ~12
         20        ECHO                                                     '%0A'
   19    21    > > JMP                                                      ->5
         22    >   FE_FREE                                                  $7
   26    23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.35 ms | 1395 KiB | 15 Q