3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function __construct($a, $b = null, $c = '/', $d = 1, $e = 0) { var_dump($a); var_dump($b); var_dump($c); var_dump($d); var_dump($e); } } $a = new A('foo'); $b = new A(null); $c = new A('foo',null,null,null,null); $d = new A('bar',null,null,null,'z');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8SAZT
function name:  (null)
number of ops:  25
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                                              $4      'A'
          1        SEND_VAL_EX                                              'foo'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $4
   14     4        NEW                                              $7      'A'
          5        SEND_VAL_EX                                              null
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $7
   15     8        NEW                                              $10     'A'
          9        SEND_VAL_EX                                              'foo'
         10        SEND_VAL_EX                                              null
         11        SEND_VAL_EX                                              null
         12        SEND_VAL_EX                                              null
         13        SEND_VAL_EX                                              null
         14        DO_FCALL                                      0          
         15        ASSIGN                                                   !2, $10
   16    16        NEW                                              $13     'A'
         17        SEND_VAL_EX                                              'bar'
         18        SEND_VAL_EX                                              null
         19        SEND_VAL_EX                                              null
         20        SEND_VAL_EX                                              null
         21        SEND_VAL_EX                                              'z'
         22        DO_FCALL                                      0          
         23        ASSIGN                                                   !3, $13
         24      > RETURN                                                   1

Class A:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8SAZT
function name:  __construct
number of ops:  21
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $d, !4 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      null
          2        RECV_INIT                                        !2      '%2F'
          3        RECV_INIT                                        !3      1
          4        RECV_INIT                                        !4      0
    5     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
    6     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                                 
    7    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                                 
    8    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !3
         16        DO_ICALL                                                 
    9    17        INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !4
         19        DO_ICALL                                                 
   10    20      > RETURN                                                   null

End of function __construct

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.55 ms | 1400 KiB | 15 Q