3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { public function __set($field, $value) { $setter = 'set' . str_replace(' ', '', ucwords(str_replace('_', ' ', $setter))); echo $setter; } } $obj = new test(); $obj->setMinStartTime();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/P1CfG
function name:  (null)
number of ops:  6
compiled vars:  !0 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   NEW                                              $1      'test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   17     3        INIT_METHOD_CALL                                         !0, 'setMinStartTime'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class test:
Function __set:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/P1CfG
function name:  __set
number of ops:  19
compiled vars:  !0 = $field, !1 = $value, !2 = $setter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    8     2        INIT_FCALL                                               'str_replace'
          3        SEND_VAL                                                 '+'
          4        SEND_VAL                                                 ''
          5        INIT_FCALL                                               'ucwords'
          6        INIT_FCALL                                               'str_replace'
          7        SEND_VAL                                                 '_'
          8        SEND_VAL                                                 '+'
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                         $3      
         11        SEND_VAR                                                 $3
         12        DO_ICALL                                         $4      
         13        SEND_VAR                                                 $4
         14        DO_ICALL                                         $5      
         15        CONCAT                                           ~6      'set', $5
         16        ASSIGN                                                   !2, ~6
   10    17        ECHO                                                     !2
   11    18      > RETURN                                                   null

End of function __set

End of class test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.53 ms | 1395 KiB | 17 Q