3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = new SimpleXMLElement('<foo></foo>'); function hey() { $s = serialize(new Exception()); } function hey2() { new Exception(); } hey(); hey2($xml); exit;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/P3KZi
function name:  (null)
number of ops:  11
compiled vars:  !0 = $xml
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'SimpleXMLElement'
          1        SEND_VAL_EX                                              '%3Cfoo%3E%3C%2Ffoo%3E'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   15     4        INIT_FCALL                                               'hey'
          5        DO_FCALL                                      0          
   16     6        INIT_FCALL                                               'hey2'
          7        SEND_VAR                                                 !0
          8        DO_FCALL                                      0          
   17     9      > EXIT                                                     
         10*     > RETURN                                                   1

Function hey:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/P3KZi
function name:  hey
number of ops:  7
compiled vars:  !0 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'serialize'
          1        NEW                                              $1      'Exception'
          2        DO_FCALL                                      0          
          3        SEND_VAR                                                 $1
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !0, $3
    8     6      > RETURN                                                   null

End of function hey

Function hey2:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/P3KZi
function name:  hey2
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $0      'Exception'
          1        DO_FCALL                                      0          
          2        FREE                                                     $0
   13     3      > RETURN                                                   null

End of function hey2

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.68 ms | 1397 KiB | 17 Q