3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 123; $b = '123'; $c = array(1, 2, 3); $d = new stdClass(); echo spl_object_hash($a) . "\n"; echo spl_object_hash($b) . "\n"; echo spl_object_hash($c) . "\n"; echo spl_object_hash($d) . "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iQYIf
function name:  (null)
number of ops:  27
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     $10, '%0A'
         10        ECHO                                                     ~11
    9    11        INIT_FCALL                                               'spl_object_hash'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                         $12     
         14        CONCAT                                           ~13     $12, '%0A'
         15        ECHO                                                     ~13
   10    16        INIT_FCALL                                               'spl_object_hash'
         17        SEND_VAR                                                 !2
         18        DO_ICALL                                         $14     
         19        CONCAT                                           ~15     $14, '%0A'
         20        ECHO                                                     ~15
   11    21        INIT_FCALL                                               'spl_object_hash'
         22        SEND_VAR                                                 !3
         23        DO_ICALL                                         $16     
         24        CONCAT                                           ~17     $16, '%0A'
         25        ECHO                                                     ~17
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.64 ms | 1387 KiB | 15 Q