3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (($ver = phpversion()) != '5.5.0beta4') die($ver); function getArticle () { $article = (yield "Article 1"); yield $article; } function fce() { return 150; } $d = getArticle(); foreach ($d as $val) { echo $val; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 6
Branch analysis from position: 5
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/76N4I
function name:  (null)
number of ops:  15
compiled vars:  !0 = $ver, !1 = $d, !2 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'phpversion'
          1        DO_ICALL                                         $3      
          2        ASSIGN                                           ~4      !0, $3
          3        IS_NOT_EQUAL                                             ~4, '5.5.0beta4'
          4      > JMPZ                                                     ~5, ->6
          5    > > EXIT                                                     !0
   15     6    >   INIT_FCALL                                               'getarticle'
          7        DO_FCALL                                      0  $6      
          8        ASSIGN                                                   !1, $6
   17     9      > FE_RESET_R                                       $8      !1, ->13
         10    > > FE_FETCH_R                                               $8, !2, ->13
   19    11    >   ECHO                                                     !2
   17    12      > JMP                                                      ->10
         13    >   FE_FREE                                                  $8
   20    14      > RETURN                                                   1

Function getarticle:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 161) Position 1 = -2
filename:       /in/76N4I
function name:  getArticle
number of ops:  5
compiled vars:  !0 = $article
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   GENERATOR_CREATE                                         
    6     1        YIELD                                            $1      'Article+1'
          2        ASSIGN                                                   !0, $1
    7     3        YIELD                                                    !0
    8     4      > GENERATOR_RETURN                                         

End of function getarticle

Function fce:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/76N4I
function name:  fce
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E > > RETURN                                                   150
   13     1*     > RETURN                                                   null

End of function fce

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.81 ms | 1399 KiB | 16 Q