3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('TEST_CONST', true); $f1 = function() { return extension_loaded('pdo'); }; $f2 = function() { return TEST_CONST; }; $f1(); $f2(); extension_loaded('pdo'); TEST_CONST;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7lomA
function name:  (null)
number of ops:  18
compiled vars:  !0 = $f1, !1 = $f2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'TEST_CONST'
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                                 
    6     4        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F7lomA%3A6%240'
          5        ASSIGN                                                   !0, ~3
   10     6        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F7lomA%3A10%241'
          7        ASSIGN                                                   !1, ~5
   14     8        INIT_DYNAMIC_CALL                                        !0
          9        DO_FCALL                                      0          
   15    10        INIT_DYNAMIC_CALL                                        !1
         11        DO_FCALL                                      0          
   20    12        INIT_FCALL                                               'extension_loaded'
         13        SEND_VAL                                                 'pdo'
         14        DO_ICALL                                                 
   22    15        FETCH_CONSTANT                                   ~10     'TEST_CONST'
         16        FREE                                                     ~10
         17      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F7lomA%3A6%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7lomA
function name:  {closure}
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'extension_loaded'
          1        SEND_VAL                                                 'pdo'
          2        DO_ICALL                                         $0      
          3      > RETURN                                                   $0
    8     4*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F7lomA%3A6%240

Function %00%7Bclosure%7D%2Fin%2F7lomA%3A10%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7lomA
function name:  {closure}
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   FETCH_CONSTANT                                   ~0      'TEST_CONST'
          1      > RETURN                                                   ~0
   12     2*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F7lomA%3A10%241

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.22 ms | 1396 KiB | 17 Q