3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('assert.active', 0); function foo() { assert('yield 42'); return true; } var_dump(foo());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RRp6m
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'ini_set'
          1        SEND_VAL                                                 'assert.active'
          2        SEND_VAL                                                 0
          3        DO_ICALL                                                 
   10     4        INIT_FCALL                                               'var_dump'
          5        INIT_FCALL                                               'foo'
          6        DO_FCALL                                      0  $1      
          7        SEND_VAR                                                 $1
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RRp6m
function name:  foo
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSERT_CHECK                                             
          1        INIT_FCALL                                               'assert'
          2        SEND_VAL                                                 'yield+42'
          3        SEND_VAL                                                 'assert%28%27yield+42%27%29'
          4        DO_ICALL                                                 
    7     5      > RETURN                                                   <true>
    8     6*     > RETURN                                                   null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
130.28 ms | 1402 KiB | 20 Q