3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Thread { function tick() { echo 'multithreaded'; } } $thread1 = new Thread; $thread2 = new Thread; while (1) { $thread1->tick(); $thread2->tick(); break; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 7
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
filename:       /in/a0Ekp
function name:  (null)
number of ops:  14
compiled vars:  !0 = $thread1, !1 = $thread2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   NEW                                              $2      'Thread'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   11     3        NEW                                              $5      'Thread'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $5
   13     6      > JMP                                                      ->12
   14     7    >   INIT_METHOD_CALL                                         !0, 'tick'
          8        DO_FCALL                                      0          
   15     9        INIT_METHOD_CALL                                         !1, 'tick'
         10        DO_FCALL                                      0          
   16    11      > JMP                                                      ->13
   13    12    > > JMPNZ                                                    1, ->7
   17    13    > > RETURN                                                   1

Class Thread:
Function tick:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/a0Ekp
function name:  tick
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                     'multithreaded'
    6     1      > RETURN                                                   null

End of function tick

End of class Thread.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.83 ms | 1394 KiB | 13 Q