3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo is_numeric('123.22') ? 'yep' : 'nope'; echo is_numeric(123.22) ? 'yep' : 'nope'; echo is_numeric('123') ? 'yep' : 'nope';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 22
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 22
Branch analysis from position: 20
Branch analysis from position: 22
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
Branch analysis from position: 14
filename:       /in/JmdOO
function name:  (null)
number of ops:  25
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'is_numeric'
          1        SEND_VAL                                                 '123.22'
          2        DO_ICALL                                         $0      
          3      > JMPZ                                                     $0, ->6
          4    >   QM_ASSIGN                                        ~1      'yep'
          5      > JMP                                                      ->7
          6    >   QM_ASSIGN                                        ~1      'nope'
          7    >   ECHO                                                     ~1
    3     8        INIT_FCALL                                               'is_numeric'
          9        SEND_VAL                                                 123.22
         10        DO_ICALL                                         $2      
         11      > JMPZ                                                     $2, ->14
         12    >   QM_ASSIGN                                        ~3      'yep'
         13      > JMP                                                      ->15
         14    >   QM_ASSIGN                                        ~3      'nope'
         15    >   ECHO                                                     ~3
    4    16        INIT_FCALL                                               'is_numeric'
         17        SEND_VAL                                                 '123'
         18        DO_ICALL                                         $4      
         19      > JMPZ                                                     $4, ->22
         20    >   QM_ASSIGN                                        ~5      'yep'
         21      > JMP                                                      ->23
         22    >   QM_ASSIGN                                        ~5      'nope'
         23    >   ECHO                                                     ~5
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.3 ms | 1396 KiB | 15 Q