3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ModelMappings { public static function getMappings () { return [ 'Sems.model.labor.laborscheduler.weekly.Shift' => [ 'eloquent' => 'Sicom\Sems\Labor\LaborScheduler\Model\StoreScheduleShift', 'pk' => 'store_schedule_shift_uid' ], 'Sems.model.labor.scheduler.Shift' => [ 'eloquent' => 'Sicom\Sems\Labor\LaborScheduler\Model\StoreScheduleShift', 'pk' => 'store_schedule_shift_uid' ], 'Sems.model.labor.laborscheduler.weekly.ShiftPart' => [ 'eloquent' => 'Sicom\Sems\Labor\LaborScheduler\Model\StoreScheduleShiftPart', 'pk' => 'store_schedule_shift_part_uid', 'belongsTo' => 'Sicom\Sems\Labor\LaborScheduler\Model\StoreScheduleShift' ], 'Sems.model.labor.scheduler.ShiftPart' => [ 'eloquent' => 'Sicom\Sems\Labor\LaborScheduler\Model\StoreScheduleShiftPart', 'pk' => 'store_schedule_shift_part_uid', 'belongsTo' => 'Sicom\Sems\Labor\LaborScheduler\Model\StoreScheduleShift' ] ]; } } $className = 'ModelMappings'; $a = $className::getMappings(); var_dump($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bgcah
function name:  (null)
number of ops:  9
compiled vars:  !0 = $className, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   28     0  E >   ASSIGN                                                   !0, 'ModelMappings'
   30     1        FETCH_CLASS                                   0  $3      !0
          2        INIT_STATIC_METHOD_CALL                                  $3, 'getMappings'
          3        DO_FCALL                                      0  $4      
          4        ASSIGN                                                   !1, $4
   31     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Class ModelMappings:
Function getmappings:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bgcah
function name:  getMappings
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E > > RETURN                                                   <array>
   25     1*     > RETURN                                                   null

End of function getmappings

End of class ModelMappings.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.53 ms | 1394 KiB | 15 Q