3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = 1; $bar = "A"; echo "foo"; $b = is_numeric($foo); $c = is_int($foo); var_dump($b); var_dump($c); echo "bar"; $b = is_numeric($bar); $c = is_int($bar); var_dump($b); var_dump($c);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aaqRU
function name:  (null)
number of ops:  29
compiled vars:  !0 = $foo, !1 = $bar, !2 = $b, !3 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 1
    4     1        ASSIGN                                                   !1, 'A'
    6     2        ECHO                                                     'foo'
    7     3        INIT_FCALL                                               'is_numeric'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $6      
          6        ASSIGN                                                   !2, $6
    8     7        TYPE_CHECK                                   16  ~8      !0
          8        ASSIGN                                                   !3, ~8
    9     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                                 
   10    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !3
         14        DO_ICALL                                                 
   12    15        ECHO                                                     'bar'
   13    16        INIT_FCALL                                               'is_numeric'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                         $12     
         19        ASSIGN                                                   !2, $12
   14    20        TYPE_CHECK                                   16  ~14     !1
         21        ASSIGN                                                   !3, ~14
   15    22        INIT_FCALL                                               'var_dump'
         23        SEND_VAR                                                 !2
         24        DO_ICALL                                                 
   16    25        INIT_FCALL                                               'var_dump'
         26        SEND_VAR                                                 !3
         27        DO_ICALL                                                 
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154 ms | 1395 KiB | 17 Q