3v4l.org

run code in 300+ PHP versions simultaneously
<?php function mytest(){ return 1==1; if (1==1) { # code... return '测试'; } echo '测试'; } function test2(){ mytest(); return 'test'; return 'test888'; } // echo mytest(); echo test2();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JqM53
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   INIT_FCALL                                               'test2'
          1        DO_FCALL                                      0  $0      
          2        ECHO                                                     $0
          3      > RETURN                                                   1

Function mytest:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JqM53
function name:  mytest
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E > > RETURN                                                   <true>
    5     1*       JMPZ                                                     <true>, ->3
    7     2*       RETURN                                                   '%E6%B5%8B%E8%AF%95'
    9     3*       ECHO                                                     '%E6%B5%8B%E8%AF%95'
   10     4*     > RETURN                                                   null

End of function mytest

Function test2:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JqM53
function name:  test2
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'mytest'
          1        DO_FCALL                                      0          
   14     2      > RETURN                                                   'test'
   15     3*       RETURN                                                   'test888'
   16     4*     > RETURN                                                   null

End of function test2

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.4 ms | 1397 KiB | 16 Q