3v4l.org

run code in 300+ PHP versions simultaneously
<?php function hello() { echo 'Hello, magic PHP!'; } function getCallback() { return 'hello'; } $result = ${'_'.!$_=getCallback()}();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ddNT4
function name:  (null)
number of ops:  10
compiled vars:  !0 = $result, !1 = $_
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'getcallback'
          1        DO_FCALL                                      0  $2      
          2        ASSIGN                                           ~3      !1, $2
          3        BOOL_NOT                                         ~4      ~3
          4        CONCAT                                           ~5      '_', ~4
          5        FETCH_R                      local               ~6      ~5
          6        INIT_DYNAMIC_CALL                                        ~6
          7        DO_FCALL                                      0  $7      
          8        ASSIGN                                                   !0, $7
          9      > RETURN                                                   1

Function hello:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ddNT4
function name:  hello
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                     'Hello%2C+magic+PHP%21'
    4     1      > RETURN                                                   null

End of function hello

Function getcallback:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ddNT4
function name:  getCallback
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E > > RETURN                                                   'hello'
    8     1*     > RETURN                                                   null

End of function getcallback

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.43 ms | 1397 KiB | 14 Q