3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Email { private $value; public function __construct(string $value) { $this->value = $value; } } $email = new Email('opexus@gmail.com'); echo json_encode(compact('email'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DTrM7
function name:  (null)
number of ops:  12
compiled vars:  !0 = $email
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   NEW                                              $1      'Email'
          1        SEND_VAL_EX                                              'opexus%40gmail.com'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   16     4        INIT_FCALL                                               'json_encode'
          5        INIT_FCALL                                               'compact'
          6        SEND_VAL                                                 'email'
          7        DO_ICALL                                         $4      
          8        SEND_VAR                                                 $4
          9        DO_ICALL                                         $5      
         10        ECHO                                                     $5
         11      > RETURN                                                   1

Class Email:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DTrM7
function name:  __construct
number of ops:  4
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    8     1        ASSIGN_OBJ                                               'value'
          2        OP_DATA                                                  !0
    9     3      > RETURN                                                   null

End of function __construct

End of class Email.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.49 ms | 1386 KiB | 17 Q