3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function __construct($a) { } } new Test(); new Test(1); new Test(1, 2); new Test(1, 2, 3); new Exception('foo!',1,2,3); new DateTime(); new DateTime(''); new DateTime('', new DateTimeZone('Europe/London'), '');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Rcstr
function name:  (null)
number of ops:  42
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   NEW                                              $0      'Test'
          1        DO_FCALL                                      0          
          2        FREE                                                     $0
    8     3        NEW                                              $2      'Test'
          4        SEND_VAL_EX                                              1
          5        DO_FCALL                                      0          
          6        FREE                                                     $2
    9     7        NEW                                              $4      'Test'
          8        SEND_VAL_EX                                              1
          9        SEND_VAL_EX                                              2
         10        DO_FCALL                                      0          
         11        FREE                                                     $4
   10    12        NEW                                              $6      'Test'
         13        SEND_VAL_EX                                              1
         14        SEND_VAL_EX                                              2
         15        SEND_VAL_EX                                              3
         16        DO_FCALL                                      0          
         17        FREE                                                     $6
   12    18        NEW                                              $8      'Exception'
         19        SEND_VAL_EX                                              'foo%21'
         20        SEND_VAL_EX                                              1
         21        SEND_VAL_EX                                              2
         22        SEND_VAL_EX                                              3
         23        DO_FCALL                                      0          
         24        FREE                                                     $8
   14    25        NEW                                              $10     'DateTime'
         26        DO_FCALL                                      0          
         27        FREE                                                     $10
   15    28        NEW                                              $12     'DateTime'
         29        SEND_VAL_EX                                              ''
         30        DO_FCALL                                      0          
         31        FREE                                                     $12
   16    32        NEW                                              $14     'DateTime'
         33        SEND_VAL_EX                                              ''
         34        NEW                                              $15     'DateTimeZone'
         35        SEND_VAL_EX                                              'Europe%2FLondon'
         36        DO_FCALL                                      0          
         37        SEND_VAR_NO_REF_EX                                       $15
         38        SEND_VAL_EX                                              ''
         39        DO_FCALL                                      0          
         40        FREE                                                     $14
         41      > RETURN                                                   1

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

End of function __construct

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.66 ms | 1399 KiB | 13 Q