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(); $d->send('something'); $d->send('something2');
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
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hMTsK
function name:  (null)
number of ops:  16
compiled vars:  !0 = $ver, !1 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'phpversion'
          1        DO_ICALL                                         $2      
          2        ASSIGN                                           ~3      !0, $2
          3        IS_NOT_EQUAL                                             ~3, '5.5.0beta4'
          4      > JMPZ                                                     ~4, ->6
          5    > > EXIT                                                     !0
   15     6    >   INIT_FCALL                                               'getarticle'
          7        DO_FCALL                                      0  $5      
          8        ASSIGN                                                   !1, $5
   17     9        INIT_METHOD_CALL                                         !1, 'send'
         10        SEND_VAL_EX                                              'something'
         11        DO_FCALL                                      0          
   18    12        INIT_METHOD_CALL                                         !1, 'send'
         13        SEND_VAL_EX                                              'something2'
         14        DO_FCALL                                      0          
         15      > RETURN                                                   1

Function getarticle:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 161) Position 1 = -2
filename:       /in/hMTsK
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/hMTsK
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:
136.4 ms | 1399 KiB | 16 Q