3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.98 ms | 1395 KiB | 15 Q