3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); namespace App; class Example { public function dodo(array $a) { foreach ($a as $one) { return $one; } return null; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tRjiV
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E > > RETURN                                                   1

Class App\Example:
Function dodo:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 6
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 6
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
filename:       /in/tRjiV
function name:  dodo
number of ops:  9
compiled vars:  !0 = $a, !1 = $one
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    9     1      > FE_RESET_R                                       $2      !0, ->6
          2    > > FE_FETCH_R                                               $2, !1, ->6
   10     3    >   FE_FREE                                                  $2
          4      > RETURN                                                   !1
    9     5*       JMP                                                      ->2
          6    >   FE_FREE                                                  $2
   13     7      > RETURN                                                   null
   14     8*     > RETURN                                                   null

End of function dodo

End of class App\Example.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.12 ms | 994 KiB | 13 Q