3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(0); var_dump(error_reporting()); class XYZ { public static function something(string $foo = null){ var_dump(unserialize('S:1:"e";')); echo('running'); } } XYZ::something();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KjOdp
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 0
          2        DO_ICALL                                                 
    4     3        INIT_FCALL                                               'var_dump'
          4        INIT_FCALL                                               'error_reporting'
          5        DO_ICALL                                         $1      
          6        SEND_VAR                                                 $1
          7        DO_ICALL                                                 
   14     8        INIT_STATIC_METHOD_CALL                                  'XYZ', 'something'
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

Class XYZ:
Function something:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KjOdp
function name:  something
number of ops:  9
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV_INIT                                        !0      null
    9     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'unserialize'
          3        SEND_VAL                                                 'S%3A1%3A%22e%22%3B'
          4        DO_ICALL                                         $1      
          5        SEND_VAR                                                 $1
          6        DO_ICALL                                                 
   10     7        ECHO                                                     'running'
   11     8      > RETURN                                                   null

End of function something

End of class XYZ.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.95 ms | 999 KiB | 16 Q