3v4l.org

run code in 300+ PHP versions simultaneously
<?php $iterations = 100000; class A {protected $a; protected $b; protected $c;} $aHydrator = function(array $data) { $this->a = $data['a']; $this->b = $data['b']; $this->c = $data['c']; }; $data = array('a' => 1, 'b' => 2, 'c' => 3); $a = new A(); for ($i = 0; $i < $iterations; $i++) { ($aHydrator->bindTo($a, $a))($data); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 9
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 9
Branch analysis from position: 19
Branch analysis from position: 9
filename:       /in/kCfPT
function name:  (null)
number of ops:  20
compiled vars:  !0 = $iterations, !1 = $aHydrator, !2 = $data, !3 = $a, !4 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 100000
    5     1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FkCfPT%3A5%240'
          2        ASSIGN                                                   !1, ~6
   10     3        ASSIGN                                                   !2, <array>
   11     4        NEW                                              $9      'A'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !3, $9
   12     7        ASSIGN                                                   !4, 0
          8      > JMP                                                      ->17
   13     9    >   INIT_METHOD_CALL                                         !1, 'bindTo'
         10        SEND_VAR_EX                                              !3
         11        SEND_VAR_EX                                              !3
         12        DO_FCALL                                      0  $13     
         13        INIT_DYNAMIC_CALL                                        $13
         14        SEND_VAR_EX                                              !2
         15        DO_FCALL                                      0          
   12    16        PRE_INC                                                  !4
         17    >   IS_SMALLER                                               !4, !0
         18      > JMPNZ                                                    ~16, ->9
   14    19    > > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FkCfPT%3A5%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kCfPT
function name:  {closure}
number of ops:  14
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        FETCH_THIS                                       $1      
          2        FETCH_DIM_R                                      ~3      !0, 'a'
          3        ASSIGN_OBJ                                               $1, 'a'
          4        OP_DATA                                                  ~3
    7     5        FETCH_THIS                                       $4      
          6        FETCH_DIM_R                                      ~6      !0, 'b'
          7        ASSIGN_OBJ                                               $4, 'b'
          8        OP_DATA                                                  ~6
    8     9        FETCH_THIS                                       $7      
         10        FETCH_DIM_R                                      ~9      !0, 'c'
         11        ASSIGN_OBJ                                               $7, 'c'
         12        OP_DATA                                                  ~9
    9    13      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FkCfPT%3A5%240

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.96 ms | 1399 KiB | 13 Q