3v4l.org

run code in 300+ PHP versions simultaneously
<?php function testNG($tng = '') { static $testNG = ''; return $testNG .= $tng; } testNG("hello!!"); testNG(" world!!"); testNG(" etc."); ?> <h2><?= testNG(); ?></h2>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GPqsf
function name:  (null)
number of ops:  15
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'testng'
          1        SEND_VAL                                                 'hello%21%21'
          2        DO_FCALL                                      0          
    9     3        INIT_FCALL                                               'testng'
          4        SEND_VAL                                                 '+world%21%21'
          5        DO_FCALL                                      0          
   10     6        INIT_FCALL                                               'testng'
          7        SEND_VAL                                                 '+etc.'
          8        DO_FCALL                                      0          
   12     9        ECHO                                                     '%3Ch2%3E'
         10        INIT_FCALL                                               'testng'
         11        DO_FCALL                                      0  $3      
         12        ECHO                                                     $3
         13        ECHO                                                     '%3C%2Fh2%3E'
         14      > RETURN                                                   1

Function testng:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GPqsf
function name:  testNG
number of ops:  5
compiled vars:  !0 = $tng, !1 = $testNG
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV_INIT                                        !0      ''
    4     1        BIND_STATIC                                              !1
    5     2        ASSIGN_OP                                     8  ~2      !1, !0
          3      > RETURN                                                   ~2
    6     4*     > RETURN                                                   null

End of function testng

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
123.25 ms | 1401 KiB | 17 Q