3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test{}; $a = spl_object_id(new test(1)); $b = spl_object_id(new test(2)); var_dump($a, $b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CFpf7
function name:  (null)
number of ops:  19
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'spl_object_id'
          1        NEW                                              $2      'test'
          2        SEND_VAL_EX                                              1
          3        DO_FCALL                                      0          
          4        SEND_VAR                                                 $2
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !0, $4
    5     7        INIT_FCALL                                               'spl_object_id'
          8        NEW                                              $6      'test'
          9        SEND_VAL_EX                                              2
         10        DO_FCALL                                      0          
         11        SEND_VAR                                                 $6
         12        DO_ICALL                                         $8      
         13        ASSIGN                                                   !1, $8
    6    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !0
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Class test: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159 ms | 1394 KiB | 17 Q