3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Source: https://bugs.php.net/bug.php?id=62500 class Crasher extends DateInterval { public function __construct($time_spec) { echo "Yes i did it, with the next statement it gives a segfault\n"; // It doesn't matter if we take the y parameter or any other. $this->y = 3; } } $c = new Crasher('blah');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/B8N1f
function name:  (null)
number of ops:  5
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                                              $1      'Crasher'
          1        SEND_VAL_EX                                              'blah'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
          4      > RETURN                                                   1

Class Crasher:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/B8N1f
function name:  __construct
number of ops:  5
compiled vars:  !0 = $time_spec
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        ECHO                                                     'Yes+i+did+it%2C+with+the+next+statement+it+gives+a+segfault%0A'
    8     2        ASSIGN_OBJ                                               'y'
          3        OP_DATA                                                  3
    9     4      > RETURN                                                   null

End of function __construct

End of class Crasher.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.23 ms | 1393 KiB | 13 Q