3v4l.org

run code in 300+ PHP versions simultaneously
<?php // 03.data_types.php print gettype(true) . PHP_EOL; // bolean print gettype(12345) . PHP_EOL; // integer print gettype(1.2345) . PHP_EOL; // double print gettype("Hello") . PHP_EOL; // string print gettype([1, 2, 3]) . PHP_EOL; // array print gettype(new stdClass()) . PHP_EOL; // object print gettype(null) . PHP_EOL; // NULL
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GE6dg
function name:  (null)
number of ops:  24
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   GET_TYPE                                         ~0      <true>
          1        CONCAT                                           ~1      ~0, '%0A'
          2        ECHO                                                     ~1
    5     3        GET_TYPE                                         ~2      12345
          4        CONCAT                                           ~3      ~2, '%0A'
          5        ECHO                                                     ~3
    6     6        GET_TYPE                                         ~4      1.2345
          7        CONCAT                                           ~5      ~4, '%0A'
          8        ECHO                                                     ~5
    7     9        GET_TYPE                                         ~6      'Hello'
         10        CONCAT                                           ~7      ~6, '%0A'
         11        ECHO                                                     ~7
    8    12        GET_TYPE                                         ~8      <array>
         13        CONCAT                                           ~9      ~8, '%0A'
         14        ECHO                                                     ~9
    9    15        NEW                                              $10     'stdClass'
         16        DO_FCALL                                      0          
         17        GET_TYPE                                         ~12     $10
         18        CONCAT                                           ~13     ~12, '%0A'
         19        ECHO                                                     ~13
   10    20        GET_TYPE                                         ~14     null
         21        CONCAT                                           ~15     ~14, '%0A'
         22        ECHO                                                     ~15
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
134.83 ms | 1433 KiB | 13 Q