3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "sss"; class A {} function test(B $b) { echo 'called'; var_dump($b); } error_reporting(E_ALL ^ E_RECOVERABLE_ERROR); set_error_handler(function () { return TRUE; }); test(new A);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eWODK
function name:  (null)
number of ops:  14
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ECHO                                                     'sss'
    9     1        INIT_FCALL                                               'error_reporting'
          2        SEND_VAL                                                 28671
          3        DO_ICALL                                                 
   10     4        INIT_FCALL                                               'set_error_handler'
          5        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FeWODK%3A10%240'
          6        SEND_VAL                                                 ~1
          7        DO_ICALL                                                 
   12     8        INIT_FCALL                                               'test'
          9        NEW                                              $3      'A'
         10        DO_FCALL                                      0          
         11        SEND_VAR                                                 $3
         12        DO_FCALL                                      0          
         13      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eWODK
function name:  test
number of ops:  6
compiled vars:  !0 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        ECHO                                                     'called'
          2        INIT_FCALL                                               'var_dump'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                                 
          5      > RETURN                                                   null

End of function test

Function %00%7Bclosure%7D%2Fin%2FeWODK%3A10%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eWODK
function name:  {closure}
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E > > RETURN                                                   <true>
          1*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FeWODK%3A10%240

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.11 ms | 1399 KiB | 20 Q