3v4l.org

run code in 500+ PHP versions simultaneously
<?php assert_options(ASSERT_ACTIVE, 0); function foo() { echo 'foo'; return true; } assert(foo()); assert('foo()');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rtvQd
function name:  (null)
number of ops:  18
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'assert_options'
          1        FETCH_CONSTANT                                       ~0      'ASSERT_ACTIVE'
          2        SEND_VAL                                                     ~0
          3        SEND_VAL                                                     0
          4        DO_FCALL_BY_NAME                                             
   11     5        ASSERT_CHECK                                                 
          6        INIT_FCALL                                                   'assert'
          7        INIT_FCALL                                                   'foo'
          8        DO_FCALL                                          0  $2      
          9        SEND_VAR                                                     $2
         10        SEND_VAL                                                     'assert%28foo%28%29%29'
         11        DO_ICALL                                                     
   12    12        ASSERT_CHECK                                                 
         13        INIT_FCALL                                                   'assert'
         14        SEND_VAL                                                     'foo%28%29'
         15        SEND_VAL                                                     'assert%28%27foo%28%29%27%29'
         16        DO_ICALL                                                     
         17      > RETURN                                                       1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rtvQd
function name:  foo
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    6     0  E >   ECHO                                                         'foo'
    8     1      > RETURN                                                       <true>
    9     2*     > RETURN                                                       null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
162.86 ms | 3268 KiB | 16 Q