3v4l.org

run code in 500+ PHP versions simultaneously
<?php namespace Test\Resource; error_reporting(E_ALL); $resource = 'test'; class Resource {} function resource($resource) { echo "This is fine"; } resource('a');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nEQv0
function name:  (null)
number of ops:  9
compiled vars:  !0 = $resource
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   INIT_NS_FCALL_BY_NAME                                        'Test%5CResource%5Cerror_reporting'
          1        FETCH_CONSTANT                                       ~1      'Test%5CResource%5CE_ALL'
          2        SEND_VAL_EX                                                  ~1
          3        DO_FCALL                                          0          
    7     4        ASSIGN                                                       !0, 'test'
   13     5        INIT_NS_FCALL_BY_NAME                                        'Test%5CResource%5Cresource'
          6        SEND_VAL_EX                                                  'a'
          7        DO_FCALL                                          0          
          8      > RETURN                                                       1

Function test%5Cresource%5Cresource:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nEQv0
function name:  Test\Resource\resource
number of ops:  3
compiled vars:  !0 = $resource
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   11     0  E >   RECV                                                 !0      
          1        ECHO                                                         'This+is+fine'
          2      > RETURN                                                       null

End of function test%5Cresource%5Cresource

Class Test\Resource\Resource: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
155.81 ms | 1485 KiB | 15 Q